Skip to content

Commit

Permalink
fix is active for departments
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed Aug 16, 2023
1 parent 9611151 commit 3cd9a87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Filament/Resources/DepartmentResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public static function form(Form $form): Form

TextInput::make('slug')->required()->maxLength(255)->label(__('slug')),
TextInput::make('ordering')->required()->numeric()->label(__('ordering')),
Toggle::make('is_active')->label(__('is active')),
Toggle::make('is_active')->label(__('is active'))->inline(false),
Textarea::make('desc')->maxLength(65535)->columnSpan(['sm' => 2])->label(__('desc')),

FileUpload::make('logo')
Expand Down
1 change: 1 addition & 0 deletions src/Models/Department.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class Department extends Model
'start_date' => 'datetime',
'end_date' => 'datetime',
'options' => 'array',
'is_active' => 'boolean',
];

public function getRouteKeyName(): string
Expand Down

0 comments on commit 3cd9a87

Please sign in to comment.