user()->admin) { return $next($request); } return new RedirectResponse(url('post/liste')); } }