Created
July 8, 2016 03:00
-
-
Save stevenspads/45e8b40eb58782d6b65b635e0b178631 to your computer and use it in GitHub Desktop.
Installing Intervention Image in Laravel 5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks