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 to convert multi list into dict in Python?

Leave a Reply

Your email address will not be published.

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