Closed
Description
So one of my laravel 5.0.34 projects needs this utility. Installed it throw composer
composer require anlutro/l4-settings
// this adds 'anlutro/l4-settings": "^0.4.5' to composer.json
Added Service Provider & Facade
'providers' => [
.
.
'anlutro\LaravelSettings\ServiceProvider',
'aliases' => [
.
.
'Setting' => 'anlutro\LaravelSettings\Facade'
All exactly as always and according to README. But my controller goes throw FatalErrorException while trying to use 'Setting' facade.
use Illuminate\Http\Request;
use Artisan;
use Input;
class ConfigController extends Controller {
.
.
.
public function config(){
$server = Setting::get('server', 1); <<<<<<<< Class 'XXXXX\Http\Controllers\Setting' not found
$count = Setting::get('count', 1000);
return view('config')->with(compact('server','count'));
}
What can it be? Trully rare problem (maybe stupid, but rare)
Metadata
Assignees
Labels
No labels