'date', 'end_date' => 'date' ]; public const ACTIVE = 0; public const UPDATE = 1; public const EXPIRED = 2; public function department() { return $this->belongsTo(Department::class, 'department_id'); } public function type() { return $this->belongsTo(TypeDoc::class, 'type_doc_id'); } public function creator() { return $this->belongsTo(User::class, 'user_id'); } }