app/Providers/AuthServiceProvider.php
/**
     * Register any authentication / authorization services.
     *
     * @return void
     */
Register any authentication / authorization services.
@return void
Register any authentication / authorization services . @return void
public function boot()
    {
        $this->registerPolicies();
        Auth::viaRequest('cookie', function ($request) {
            return $this->checkAuth($request);
        });
        Auth::viaRequest('authIf', function ($request) {
            return $this->checkAuth($request);
        });
    }
public function boot ( ) { $ this -> registerPolicies ( ) ; Auth :: viaRequest ( 'cookie' , function ( $ request ) { return $ this -> checkAuth ( $ request ) ; } ) ; Auth :: viaRequest ( 'authIf' , function ( $ request ) { return $ this -> checkAuth ( $ request ) ; } ) ; }
Register any authentication / authorization services.
Register any authentication / authorization services .