You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
963 B
54 lines
963 B
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Models\Admin;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Navigation extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $connection = 'mysql_admin';
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $table = 'hospital_navigations';
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var array<int, string>
|
|
*/
|
|
protected $fillable = [
|
|
'area_id',
|
|
'area_name',
|
|
'longitude',
|
|
'latitude',
|
|
'address',
|
|
'telephone',
|
|
'traffic',
|
|
'guide',
|
|
'sort',
|
|
'is_enable',
|
|
];
|
|
|
|
/**
|
|
* The attributes that should be cast.
|
|
*
|
|
* @var array<string, string>
|
|
*/
|
|
protected $casts = [
|
|
'id' => 'integer',
|
|
'area_id' => 'integer',
|
|
'sort' => 'integer',
|
|
'is_enable' => 'integer',
|
|
];
|
|
|
|
}
|
|
|