Initial commit

This commit is contained in:
2026-10-31 13:24:24 +01:00
commit e6805f2245
87 changed files with 16180 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
class Category extends Model
{
use HasFactory;
protected $fillable = [
'name',
'slug',
'description',
'icon',
'is_featured',
'sort_order',
];
protected $casts = [
'is_featured' => 'boolean',
'sort_order' => 'integer',
];
public function products(): HasMany
{
return $this->hasMany(Product::class);
}
}