I have following code located in App/Http/Helpers/helpers.php
:
<?php
use Illuminate\Support\Facades\Cache;
function putIntoCache(){
Cache::put('foo', 'bar');
}
When calling putIntoCache()
function in app/config/custom.php
, I get the following message:
Fatal error: Call to a member function put() on a non-object in D:\www\project\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php on line 216
How to fix this?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2a5Uvxv
via IFTTT
Aucun commentaire:
Enregistrer un commentaire