<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class OfficeIpRule extends Model { protected $fillable=['office_id','label','cidr','is_active']; protected function casts():array{return ['is_active'=>'boolean'];} public function office(){return $this->belongsTo(Office::class);} }