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.
39 lines
786 B
39 lines
786 B
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class ParkingCamera extends Model
|
|
{
|
|
use HasFactory, SoftDeletes;
|
|
|
|
protected $table = 'parking_camera';
|
|
|
|
protected $fillable = [
|
|
'number',
|
|
'camera_ip',
|
|
'server_ip',
|
|
'floor_id',
|
|
'floor_region_id',
|
|
'is_control_lights',
|
|
'is_external',
|
|
'built_in_light',
|
|
'off_light',
|
|
'remark',
|
|
'type',
|
|
'status'
|
|
];
|
|
|
|
protected $hidden = [
|
|
'created_at',
|
|
'deleted_at'
|
|
];
|
|
|
|
public function getUpdatedAtAttribute($value): string
|
|
{
|
|
return get_datetime('datetime', strtotime($value));
|
|
}
|
|
}
|
|
|