Laravel 8 Resource
php artisan make:controller PhotoController --resource --model=PhotoRoute::resource('photos', PhotoController::class);php artisan make:controller BlogController --resourceResource Controller:This controller will create all CRUD methods
php artisan make:controller nameOfController --resourceRoute::resource('photos', PhotoController::class)->only([
'index', 'show'
]);
Route::resource('photos', PhotoController::class)->except([
'create', 'store', 'update', 'destroy'
]);php artisan make:controller PhotoController --resource
Also in PHP:
- Failed at the dev script npm run dev
- Fatal error: Allowed memory size composer
- error show php
- date("l",$date) php
- axios post php
- Create image data URIs (base64) using PHP Raw
- php timestamp to date
- DB::connection() for php
- disable errors php
- custom password reset in laravel
- drop down list display only seleted item only
- check if astring is apart of another string in php
- collection methods laravel
- contains in php string
- Cannot declare class Symfony\Component\Debug\ErrorHandler, because the name is already in use
- Connecting to Database sql
- Laravel Eloquent, group by month/year
- Override the route parameter names
- count text length php
- change date format php
- fetch data from phpmyadmin
- error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
- create foreign key laravel migration
- create dir using php