Skip to content

Commit

Permalink
Add url validation rules
Browse files Browse the repository at this point in the history
  • Loading branch information
thibautdeg committed Sep 24, 2024
1 parent bea01a6 commit 6022328
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Filament/RedirectResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ public static function form(Form $form): Form
return $form
->schema([
Forms\Components\TextInput::make('from')
->rules(['url', 'required'])
->required(),

Forms\Components\TextInput::make('to')
->rules(['url', 'required'])
->required(),

Forms\Components\Select::make('status')
Expand Down

0 comments on commit 6022328

Please sign in to comment.