Already fixed it:
public function boot()
{
if (Request::is('cms') OR Request::is('cms/*'))
{
$this->app['auth']->extend('custom',function()
{
$model = $this->app['config']['auth.model'];
return new EloquentUserProvider($this->app['hash'], $model);
});
} else {
$this->app['auth']->extend('custom',function()
{
return new CustomUserProvider();
});
}
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community