Support the ongoing development of Laravel.io →
posted 8 years ago
Authentication
Last updated 2 years ago.
0

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();
            });            
        }
    }

0

Sign in to participate in this thread!

Eventy

Your banner here too?

isomis isomis Joined 7 Jul 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.