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

[5.6] Add ElseAuth and ElseGuest Blade directives #23569

Merged
merged 1 commit into from
Mar 16, 2018

Conversation

j-dexx
Copy link
Contributor

@j-dexx j-dexx commented Mar 16, 2018

I currently have an app where I'm using multiple guards. Being able to have else if statements for auth would be great. I.e.

@auth('administrator')
@elseauth('standard')
@endauth

I added the corresponding elseguest for completeness, as given elseauth I'd expect it to exist but in my usecase I'm not sure we'd actually use it.

@taylorotwell taylorotwell merged commit d64e500 into laravel:5.6 Mar 16, 2018
@j-dexx j-dexx deleted the add_else_auth branch March 16, 2018 14:52
@GrahamCampbell GrahamCampbell changed the title Add ElseAuth and ElseGuest Blade directives [5.6] Add ElseAuth and ElseGuest Blade directives Mar 16, 2018
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