Closed mattzuba closed 9 years ago
Something like this in the Service Provider:
$this->app->alias('setting', 'Thetispro\Setting\Setting');
Or change the bind line
$this->app->bind(['setting' => 'Thetispro\Setting\Setting'], function($app) {
Makes it much easier to use dependency injection instead of facades to access everything.
Done.
Something like this in the Service Provider:
Or change the bind line
Makes it much easier to use dependency injection instead of facades to access everything.