Skip to content

PHP code snippet – How to create resource in laravel?

php artisan make:controller PhotoController --resource --model=Photo
Route::resource('photos', PhotoController::class);
See also  PHP code snippet - How to use a session in blade?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.