php - Laravel 5.3: How to save images - Is Intervention still available? -


i began use laravel 5.3, wondering if intervention still compatible or not.

i followed the documentation, keep getting error message, saying

class 'intervention\image\imageserviceprovider' not found

i added intervention\image\imageserviceprovider::class $providers , added 'image' => intervention\image\facades\image::class $aliases. then, began see error message.

when using laravel 5.2, didn't happen, far remember.

any advice appreciated!

you need run following command:

step 1

$ composer require intervention/image 

step 2

in $providers array add service providers package.

intervention\image\imageserviceprovider::class 

step 3

add facade of package $aliases array.

'image' => intervention\image\facades\image::class 

step 4

$ php artisan config:clear $ php artisan cache:clear 

step 5

composer dump-autoload 

Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -