MustSystemManager.php 455 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace App\Http\Middleware;
  3. use Closure;
  4. class MustSystemManager
  5. {
  6. /**
  7. * Handle an incoming request.
  8. *
  9. * @param \Illuminate\Http\Request $request
  10. * @param \Closure $next
  11. * @return mixed
  12. */
  13. public function handle($request, Closure $next)
  14. {
  15. if (\Auth::user()->is_super == 3) {
  16. return showJsonErr('抱歉,您没有访问权限');
  17. }
  18. return $next($request);
  19. }
  20. }