Skip to content
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

[1.x] Consistently use verified middleware on /dashboard route. #190

Merged
merged 1 commit into from
Sep 23, 2022

Conversation

jessarcher
Copy link
Member

The Vue and React stacks have the verified middleware on the /dashboard route by default:

Route::get('/dashboard', function () {
return Inertia::render('Dashboard');
})->middleware(['auth', 'verified'])->name('dashboard');

This PR updates the Blade stack to be the same. Note that it only takes effect if the MustVerifyEmail interface is implemented on the User model.

It's obviously a personal preference whether or not the dashboard should require verification, so an alternative would be to remove it from the other stacks. Personally, I like that it's there by default as it's safer and demonstrates a feature that Breeze provides UI components for.

@jessarcher jessarcher changed the title Consistently use verified middleware on /dashboard route. [1.x] Consistently use verified middleware on /dashboard route. Sep 23, 2022
@taylorotwell taylorotwell merged commit f861d71 into 1.x Sep 23, 2022
@taylorotwell taylorotwell deleted the blade-dashboard-verified branch September 23, 2022 13:46
slimani-dev pushed a commit to slimani-dev/breeze that referenced this pull request Jan 21, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants