ExampleMiddleware.php 351B

12345678910111213141516171819202122
  1. <?php
  2. namespace App\Http\Middleware;
  3. use App\User;
  4. use Closure;
  5. class ExampleMiddleware
  6. {
  7. /**
  8. * Handle an incoming request.
  9. *
  10. * @param \Illuminate\Http\Request $request
  11. * @param \Closure $next
  12. * @return mixed
  13. */
  14. public function handle($request, Closure $next)
  15. {
  16. return $next($request);
  17. }
  18. }