
*/ 'image_driver' => env ( 'IMAGE_DRIVER', 'gd' ), /* * FFMPEG & FFProbe binaries paths, only used if you try to generate video * thumbnails and have installed the php-ffmpeg/php-ffmpeg composer * dependency. */ 'temporary_directory_path' => null, /* * The engine that should perform the image conversions. * If set to null, storage_path('media-library/temp') will be used. */ 'image_generators' =>, /* * The path where to store temporary files while performing image conversions. 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:
