move into sonardesk
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Locations\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
final class Location extends Model
|
||||
{
|
||||
protected $fillable = ['name', 'slug', 'type', 'address', 'postcode', 'country', 'phone', 'email', 'latitude', 'longitude', 'opening_hours', 'is_active', 'sort_order'];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return ['latitude' => 'decimal:7', 'longitude' => 'decimal:7', 'opening_hours' => 'array', 'is_active' => 'boolean'];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user