Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save stevenspads/45e8b40eb58782d6b65b635e0b178631 to your computer and use it in GitHub Desktop.
Save stevenspads/45e8b40eb58782d6b65b635e0b178631 to your computer and use it in GitHub Desktop.
Installing Intervention Image in Laravel 5
Installing Intervention Image in Laravel 5
1. Find the composer.json in your root directory and add "intervention/image": "2.*" in the require section:
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.2.*",
"intervention/image": "2.*"
},
2. Now, in your terminal, update your composer with the command: composer update
After updating the composer, update your Laravel config file config/app.php as follows.
3. Add the following line in $providers array.
Intervention\Image\ImageServiceProvider::class,
4. Add the following line in $aliases array.
'Image' => Intervention\Image\Facades\Image::class,
5. Now, in your terminal, publish the package with the following command:
php artisan vendor:publish --provider="Intervention\Image\ImageServiceProviderLaravel5"
@MarcTSIVANYO
Copy link

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment