Laravel 9 Product CRUD | Step by Step tutorial for Beginners | Laravel Create, Update & Delete

Опубликовано: 16 Февраль 2023
на канале: Easy Programing
246
3

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'
];
5. Route web.php
use App\Http\Controllers\ProductController;
Route::resource('products', ProductController::class);

6. Now we will create views

https://www.itsolutionstuff.com/post/...