Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel array_merge(): Argument #2 is not an array In ServiceProvider.php

I can not do php artisan serve anymore, it says :

In ServiceProvider.php line 59:

   array_merge(): Argument #2 is not an array

Line 59 code is in ServiceProvider.php:

$this->app['config']->set($key, array_merge(require $path, $config));

I dont understand what is wrong with my ServiceProvider.php, I did not change a thing there.

I hope some can help me.

like image 512
slekniws Avatar asked Oct 25 '25 15:10

slekniws


1 Answers

Check the files in your config/ folder, one of them is not returning an array.

like image 139
naamhierzo Avatar answered Oct 28 '25 07:10

naamhierzo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!