session()->has('teamstore_data_array')) { // user value cannot be found in session // return redirect('/teamstore'); } return $next($request); } }