'decimal:2', 'requires_approval' => 'boolean', ]; /** * Get the leave type that owns the policy. */ public function leaveType() { return $this->belongsTo(LeaveType::class); } /** * Get the user who created the policy. */ public function creator() { return $this->belongsTo(User::class, 'created_by'); } }