Я проверил< /code> в моем ядре:
Код: Выделить всё
protected $middlewareAliases = [
...
...
'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
];
Код: Выделить всё
Route::group(['middleware' => ['verified', 'web']],function(){
Route::get('/dashboard', [DashboardController::class, 'index'])->name('dashboard');
});
Код: Выделить всё
ReflectionException
Class "verified" does not exist
at vendor/laravel/framework/src/Illuminate/Foundation/Console/RouteListCommand.php:225
221▕ if ($this->isFrameworkController($route)) {
222▕ return false;
223▕ }
224▕
➜ 225▕ $path = (new ReflectionClass($route->getControllerClass()))
226▕ ->getFileName();
227▕ } else {
228▕ return false;
229▕ }
+3 vendor frames
4 [internal]:0
Illuminate\Foundation\Console\RouteListCommand::Illuminate\Foundation\Console\{closure}(Object(Illuminate\Routing\Route))
+16 vendor frames
21 artisan:37
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
Подробнее здесь: https://stackoverflow.com/questions/782 ... -not-exist
Мобильная версия