filmov
tv
Laravel 9 Product CRUD | Step by Step tutorial for Beginners | Laravel Create, Update & Delete
Показать описание
LAravel 9 CRUD (Product)
1. php artisan make:migration create_products_table --create=products
2. php artisan make:controller ProductController --resource --model=Product
3. You can see the controller code in descriptions
4. Model protected $fillable = [
'name', 'detail'
];
use App\Http\Controllers\ProductController;
Route::resource('products', ProductController::class);
6. Now we will create views
1. php artisan make:migration create_products_table --create=products
2. php artisan make:controller ProductController --resource --model=Product
3. You can see the controller code in descriptions
4. Model protected $fillable = [
'name', 'detail'
];
use App\Http\Controllers\ProductController;
Route::resource('products', ProductController::class);
6. Now we will create views