Skip to content

Commit

Permalink
Merge pull request #12 from TappNetwork/fix-images
Browse files Browse the repository at this point in the history
tell filament where to store images
  • Loading branch information
swilla authored Feb 5, 2025
2 parents 094f887 + 4a23045 commit f577e08
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 f577e08

Please sign in to comment.