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] Group common middleware instead of duplicating #131

Merged
merged 3 commits into from
Feb 14, 2022

Conversation

dammy001
Copy link
Contributor

No description provided.

Copy link
Member

@driesvints driesvints left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also like this approach 👍

@driesvints driesvints changed the title group common middleware instead of duplicating [1.x] Group common middleware instead of duplicating Feb 14, 2022
@taylorotwell taylorotwell merged commit 9f46ea7 into laravel:1.x Feb 14, 2022
Route::get('/verify-email', [EmailVerificationPromptController::class, '__invoke'])
->middleware('auth')
Route::middleware('auth')->group(function () {
Route::get('verify-email', [EmailVerificationPromptController::class, '__invoke'])
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe: Route::get('verify-email', EmailVerificationPromptController::class)?

slimani-dev pushed a commit to slimani-dev/breeze that referenced this pull request Jan 21, 2023
* group common middleware instead of duplicating

* Update auth.php

* Update auth.php
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.

4 participants