From 9ef2e848524c8e171df5ab86aed496679c5b7aab Mon Sep 17 00:00:00 2001 From: Ryan Scherler Date: Sat, 10 Oct 2020 16:03:05 -0700 Subject: [PATCH] Remove file field. --- composer.json | 1 - src/Http/Fieldsets/UserEditFieldset.php | 9 --------- 2 files changed, 10 deletions(-) diff --git a/composer.json b/composer.json index e92d71af03c..ad3abb8eaf6 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,6 @@ "doctrine/dbal": "^2.10", "driesvints/blade-icons": "^2.2", "graham-campbell/markdown": "^12.0", - "filament/field-file": "dev-master", "plank/laravel-metable": "^2.1", "laravel/ui": "^2.0", "league/glide-laravel": "^1.0", diff --git a/src/Http/Fieldsets/UserEditFieldset.php b/src/Http/Fieldsets/UserEditFieldset.php index 1832433a7f4..622d7972bb1 100644 --- a/src/Http/Fieldsets/UserEditFieldset.php +++ b/src/Http/Fieldsets/UserEditFieldset.php @@ -3,7 +3,6 @@ namespace Filament\Http\Fieldsets; use Filament\Http\Fields\Input; -use Filament\Fields\File\File; use Filament\Http\Fields\Checkbox; use Filament\Http\Fields\Checkboxes; use Illuminate\Validation\Rule; @@ -36,14 +35,6 @@ public static function fields($model) ]) ->class('md:col-span-2') ->group('account'), - File::make('avatar') - ->rules('array') - ->fileRules('image') - ->fileValidationMessages([ - 'image' => __('The Avatar must be a valid image.'), - ]) - ->mediaIds($model->avatar) - ->group('account'), Input::make('password') ->type('password') ->label('New password')