"Updated AdminController, added products method and addNewProduct method, modified adminfooter and adminheader blade files, and added routes for admin products and add new product"

This commit is contained in:
UronShrestha
2024-07-14 10:22:06 +05:45
parent 1550ab5d30
commit f37e18f125
12 changed files with 486 additions and 53 deletions

20
app/Models/Product.php Normal file
View File

@ -0,0 +1,20 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Product extends Model
{
use HasFactory;
protected $fillable = [
'name',
'description',
'price',
'picture',
'category',
'type',
'quantity',
];
}