New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'verified' middleware does not work with 'auth' middleware? #26843
Comments
It's normal that your login view is still shown as this is controlled by the |
It's definitely not the welcome view. It's specifically the |
Can you post your |
Since this is a fresh install it's the default: <?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password',
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
} |
Are you able to reproduce the issue? It should only take 30 seconds. |
You need to implement the That should do it. |
Oops, sorry for wasting your time. |
@ryanmortier infact you didn't waste our tym, very many people forget this |
Description:
When adding
->middleware(['auth', 'verified'])
to a route, the verified middleware doesn't apply.Steps To Reproduce:
laravel new blog
php artisan make:auth
.env
filephp artisan migrate
php artisan tinker
then:$this->middleware(['auth', 'verified']);
to theHomeController
constructorThe text was updated successfully, but these errors were encountered: