芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/lavishbdlifestyle.com/app/Http/Middleware/PreventBackHistory.php
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Http\Request; class PreventBackHistory { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next * @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse */ public function handle(Request $request, Closure $next) { $headers = [ 'Cache-Control' => 'nocache, no-store, max-age=0, must-revalidate', 'Pragma' => 'no-cache', 'Expires' => 'Sat, 26 Jul 1997 05:00:00 GMT' ]; $response = $next($request); foreach($headers as $key => $value) { $response->headers->set($key, $value); } return $response; } }
Page is not found
Oops! Page not found.
Sorry, an error has occured, Requested page not found!
Back To Homepage