feat: add FeaturedGroup and FeaturedProduct models with migrations for database structure
This commit is contained in:
20
app/Domains/Product/Models/FeaturedGroup.php
Normal file
20
app/Domains/Product/Models/FeaturedGroup.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domains\Product\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
|
||||
class FeaturedGroup extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'tenant_codigo',
|
||||
'group_name',
|
||||
'product_layout',
|
||||
];
|
||||
|
||||
public function featuredProducts(): HasMany
|
||||
{
|
||||
return $this->hasMany(FeaturedProduct::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user