|
|
|
|
@ -7,15 +7,17 @@ class GateLog extends SoftDeletesModel
|
|
|
|
|
protected $guarded = ['id'];
|
|
|
|
|
|
|
|
|
|
protected $casts = [
|
|
|
|
|
'person_no'=>'array',
|
|
|
|
|
'car_no'=>'array'
|
|
|
|
|
'person_no' => 'array',
|
|
|
|
|
'car_no' => 'array'
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
public static function add($admin_id, $code = '', $remark = '')
|
|
|
|
|
public static function add($admin_id, $code, $person_no, $car_no, $remark = '')
|
|
|
|
|
{
|
|
|
|
|
return self::create([
|
|
|
|
|
'admin_id' => $admin_id,
|
|
|
|
|
'code' => $code,
|
|
|
|
|
'car_no' => $car_no,
|
|
|
|
|
'person_no' => $person_no,
|
|
|
|
|
'remark' => $remark
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
|