27 lines
434 B
PHP
27 lines
434 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class DeviceModule extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'device_module';
|
|
|
|
protected $fillable = [
|
|
'device_id',
|
|
'module_id',
|
|
'status',
|
|
];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'status' => 'boolean',
|
|
];
|
|
}
|
|
}
|