user()?->can(Permission::PAYROLL_ADJUST->value) ?? false; } /** * @return array */ public function rules(): array { return [ 'type' => ['required', Rule::enum(PayrollAdjustmentType::class)], 'amount' => ['required', 'integer', 'min:1'], 'description' => ['required', 'string', 'max:100'], ]; } /** * @return array */ public function attributes(): array { return [ 'type' => 'jenis', 'amount' => 'jumlah', 'description' => 'keterangan', ]; } }