all()); // if(!Session()->has('_token')){ // return redirect('sign_in')->with('error_msg','You must be logged in..'); // } // return $request; // // if($response instanceof \Illuminate\Http\Response) { // return $next($request)->header('Cache-Control','no-cache, no-store, max-age=0, must-revalidate') // ->header('Pragma','no-cache') // ->header('Expires','Sat 01 Jan 1990 00:00:00 GMT');; // } // $response = $next($request); // // foreach($header as $key => $value) // { // $response->headers->set($key, $value); // } // return $response; } }