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  How unique field in table in PHPmyadmin?

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.