New Initial Commit
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class HeroImage extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'page',
|
||||
'image_path',
|
||||
'title',
|
||||
'description',
|
||||
'button_text',
|
||||
'button_link',
|
||||
'sort_order',
|
||||
'is_active',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'is_active' => 'boolean',
|
||||
'sort_order' => 'integer',
|
||||
];
|
||||
|
||||
public static function getPages()
|
||||
{
|
||||
return [
|
||||
'home' => 'Home Page',
|
||||
'wallpaper' => 'Wallpaper Product Page',
|
||||
'mural' => 'Mural Product Page',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user