dimanche 4 juin 2017

Unable to get constant variable in Laravel 5.4

I create file named constants.php in project\config folder

The content is

<?php

return [

  'foo' => 'bar',

];

?>

But I get empty response while I do config('constants.foo') or Config::get('constants.foo')

Where I'm doing wrong?



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

Aucun commentaire:

Enregistrer un commentaire