From 6022328543c977aa249a467156166cbf0f5021db Mon Sep 17 00:00:00 2001 From: Thibaut Degezelle Date: Tue, 24 Sep 2024 13:54:38 +0200 Subject: [PATCH] Add url validation rules --- src/Filament/RedirectResource.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Filament/RedirectResource.php b/src/Filament/RedirectResource.php index f834f11..726ded1 100644 --- a/src/Filament/RedirectResource.php +++ b/src/Filament/RedirectResource.php @@ -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')