vtalbot / coffee

CoffeeScript compiler for Laravel 4 (Illuminate)
8 stars 2 forks source link

Failed to publish a config file #3

Open krismp opened 10 years ago

krismp commented 10 years ago

I got this error when running this command:

php artisan config:publish vtalbot/coffee

error message:

{"error":{"type":"ErrorException","message":"Invalid argument supplied for foreach()","file":"C:\\Portofolio\\criwiz\\vendor\\vtalbot\\coffee\\src\\VTalbot\\Coffee\\CoffeeServiceProvider.php","line":44}}
vtalbot commented 10 years ago

Could you provide your version of Laravel? I tried on Laravel 4.2.8 and it did work.

Twister915 commented 10 years ago

I'm currently getting the same issue. Laravel version 4.2.8 and Laravel version 4.2.11

Error on line 44

vtalbot commented 10 years ago

Did you edit the app/config/app.php before running the publish:config command?

jpascoe commented 9 years ago

Yes, this is the reason for the error. needs to be published before adding the provider and alias