Initial commit
This commit is contained in:
29
app/Models/Homepage.php
Normal file
29
app/Models/Homepage.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Homepage extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'homepage';
|
||||
|
||||
protected $fillable = [
|
||||
'photo',
|
||||
'photo_mobile',
|
||||
'photo_menu',
|
||||
'title',
|
||||
'body',
|
||||
'address',
|
||||
'delivery',
|
||||
'opening_hours',
|
||||
'widget_link'
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'opening_hours' => 'array',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user