Question: I have this code that retrieves only one image.
How can I edit it to retrieve more than an image?

And how can I attach a URL with the images in order to if the user clicks the image the URL will open?

```
public class MainActivity extends AppCompatActivity {

    ImageView rImage;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        rImage = findViewById(R.id.rImage);

        FirebaseDatabase firebaseDatabase = FirebaseDatabase.getInstance();

        DatabaseReference databaseReference = firebaseDatabase.getReference();

        DatabaseReference getImage = databaseReference.child("image");

        getImage.addListenerForSingleValueEvent(new ValueEventListener() {
            @Override
            public void onDataChange(@NonNull DataSnapshot dataSnapshot) {

                String link = dataSnapshot.getValue(String.class);

                Picasso.get().load(link).into(rImage);
            }

            @Override
            public void onCancelled(@NonNull DatabaseError databaseError) {
                // we are showing that error message in toast
                Toast.makeText(MainActivity.this, "Error Loading Image", Toast.LENGTH_SHORT).show();
            }
        });
    }
}

```

This is the XML code:

```
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context=".MainActivity">

    <!-- we are using ImageView for displaying image-->
    <ImageView
        android:id="@+id/rImage"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="20dp" />

</LinearLayout>

```

Answer: 
To be honest using something like a TagsController is in my opinion a big no since Laravel is using plural or none plural in his own logic.

You could add a Request to the destroy method and check for a request value like items, but you still would have to deal with the Object since default it tries to create an object.

What you could do is post a delete and instead of /{idofdeleteobject} pass a string like /bulk and if the Tag is null since it is not an ID check for an array of object in the request,

```php
public function(Tag $tag, Request $request) {
    if(!is_null($tag)) {
       return $tag->delete();
    })

    if($request->has('bulk') {
       // logic for deleting all bulk
    })
}

```
No this is basically not a good approach to create as many controllers for same resource.

It is okay if you want to use some functions other than resource.
Like if you have

```
Route::resource('tags', TagsController::class);

```

So if you need to use bulk-delete method then you can:

```
Route::get('tags/delete', [TagsController::class, 'bulk_delete']);

```

And you can pass ids in the query params and access them via Request::class in controller.