Skip to content

Commit

Permalink
feat: add image optimizer
Browse files Browse the repository at this point in the history
  • Loading branch information
ast21 committed Nov 11, 2024
1 parent a75d05a commit 228df54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"illuminate/contracts": "^10.0|^11.0",
"ibecsystems/admin-kit-core": "^3.5",
"ibecsystems/admin-kit-seo": "^3.4",
"joshembling/image-optimizer": "^1.4",
"spatie/laravel-package-tools": "^1.14.0",
"spatie/laravel-data": "^4.5",
"spatie/laravel-json-api-paginate": "^1.13",
Expand Down
1 change: 1 addition & 0 deletions src/UI/Filament/Resources/ArticleResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public static function form(Form $form): Form
$components[] = Forms\Components\SpatieMediaLibraryFileUpload::make('image')
->label(__('admin-kit-articles::articles.resource.image'))
->image()
->optimize('webp')
->required()
->columnSpan(2)

Expand Down

0 comments on commit 228df54

Please sign in to comment.