Skip to content

Commit

Permalink
chore: remove mandatory relationships on category and person (#15)
Browse files Browse the repository at this point in the history
* removed validation for category

* removed validation for person
  • Loading branch information
chinmaypurav authored Jan 8, 2025
1 parent 452c1fc commit 77808b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions app/Filament/Concerns/IncomeExpenseResourceTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ public static function form(Form $form): Form
->required(),

Select::make('category_id')
->relationship('category', 'name')
->required(),
->relationship('category', 'name'),

TextInput::make('description')
->required(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ public static function form(Form $form): Form
->schema([
Select::make('person_id')
->relationship('person', 'name')
->preload()
->required(),
->preload(),

Select::make('account_id')
->relationship('account', 'name')
Expand All @@ -41,8 +40,7 @@ public static function form(Form $form): Form

Select::make('category_id')
->relationship('category', 'name')
->preload()
->required(),
->preload(),

TextInput::make('description')
->required(),
Expand Down

0 comments on commit 77808b8

Please sign in to comment.