laravel 7 controller index method to show items only from a particular ID code example Example: laravel create resource controller php artisan make:controller PhotoController --resource