Filter and Redirect Middleware

Middleware

    public function handle($request, Closure $next)
    {
        $user = Auth::guard('store')->user();
        $store_id = $user->store_id();
        //logg($request->path());
        if($store_id == false){
            if($request->is('store/info/create*') == false){
                return redirect()->route('store.create');
            }
        }

        return $next($request);
    }

Kernel

    protected $routeMiddleware = [
        'auth' => \App\Http\Middleware\Authenticate::class,
        'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
        'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
        'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
        'can' => \Illuminate\Auth\Middleware\Authorize::class,
        'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
        'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
        'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
        'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
        'localization' => \App\Http\Middleware\Localization::class,
        //For pages that require a store first
        'check_store' => \App\Http\Middleware\CheckStore::class,
    ];

Route:

    Route::group(['prefix' => '/info', 'middleware'=>'check_store'], function(){
        Route::get('/', 'Store\[email protected]');
        Route::get('/edit', 'Store\[email protected]');
        Route::post('/edit', 'Store\[email protected]_save');
        Route::get('/create', 'Store\[email protected]')->name('store.create');
        Route::post('/create', 'Store\[email protected]_save');
    });