Skip to content

Commit

Permalink
tell filament where to store images
Browse files Browse the repository at this point in the history
  • Loading branch information
swilla committed Feb 5, 2025
1 parent d24f2d1 commit 4a23045
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Resources/CourseResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ public static function form(Form $form): Form
->required(),
FileUpload::make('image')
->helperText('Image will be automatically cropped to a square.')
->disk('public')
->directory('courses')
->image()
->imageResizeMode('cover')
->imageResizeTargetWidth('1080')
Expand Down

0 comments on commit 4a23045

Please sign in to comment.