samedi 5 mars 2016

Using a helper function in the config/session.php gives an error with all php artisan commands / composer

In the session.php I use the helper function url() for creating a dynamic domain name. This way when I move to the real server I won't have to change the domain name. It looks like this:

'domain' => url(''),

Everything works fine in the browser but when I use any php artisan or composer commands from the terminal it will give me this error:

PHP Fatal error:  Uncaught ReflectionException: Class log does not exist in /vendor/laravel/framework/src/Illuminate/Container/Container.php:738

Trying it like this doesn't seem to help

'domain' => @url(''),

Is there anything to be done? I'm using Laravel 5.2



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1prHrWG
via IFTTT

Aucun commentaire:

Enregistrer un commentaire