Harihar.Kushwaha's avatar

Issue with Watermark uploaded Image with Laravel 5.1

  1. In my composer.json ihave added "require": {
    "intervention/image": "dev-master",
    },

2: add to providers array:
Intervention\Image\ImageServiceProvider::class,

3: add to aliases array:
'Image' => Intervention\Image\Facades\Image::class,

4: upadte composer
composer update

I got below error..
ErrorException in ServiceProvider.php line 66:
array_merge(): Argument #2 is not an array

0 likes
1 reply
shashik493's avatar

Hi,

Please check this URL is working for me. http://image.intervention.io/getting_started/installation#laravel run this below command on CMD : php composer.phar require intervention/image Add this line to config/app.php Intervention\Image\ImageServiceProvider::class 'Image' => Intervention\Image\Facades\Image::clas and Laravel 5: php artisan vendor:publish --provider="Intervention\Image\ImageServiceProviderLaravel5" Laravel 4: php artisan config:publish intervention/image

Reaming it works . Enjoy. : )

Please or to participate in this conversation.