'int', 'view_position' => 'int', 'booking_id' => 'int', 'type_id' => 'int', 'in_pdf' => 'bool' ]; protected $dates = [ 'state', 'begin', 'end' ]; protected $fillable = [ 'template_id', 'state', 'begin', 'end', 'type_s', 'data_s', 'view_position', 'booking_id', 'type_id', 'in_pdf' ]; public function booking() { return $this->belongsTo(Booking::class); } public function arrangement_template() { return $this->belongsTo(ArrangementTemplate::class, 'template_id'); } }