This is the default content of the config file: return, Spatie\ImageOptimizer\Optimizers\Pngquant ::class =>, Spatie\ImageOptimizer\Optimizers\Optipng ::class =>, Spatie\ImageOptimizer\Optimizers\Svgo ::class =>, Spatie\ImageOptimizer\Optimizers\Gifsicle ::class =>, Spatie\ImageOptimizer\Optimizers\Cwebp ::class =>, Spatie\ImageOptimizer\Optimizers\Avifenc ::class =>, ], /* * These generators will be used to create an image of media files. Publishing the config file is optional: php artisan vendor:publish -provider= "Spatie\MediaLibrary\MediaLibraryServiceProvider" -tag= "config" php artisan migrate #Publishing the config file You need to publish the migration to create the media table: php artisan vendor:publish -provider= "Spatie\MediaLibrary\MediaLibraryServiceProvider" -tag= "migrations"Īfter that, you need to run migrations. Please refer to our Media Library Pro installation instructions to continue. If you have a license for Media Library Pro, you should install spatie/laravel-media-library-pro instead. If you only use the base package issue this command: composer require "spatie/laravel-medialibrary:^10.0.0" Media Library can be installed via Composer:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |