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

Projects
None yet
2 participants
@j-dexx
Contributor

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

2 checks passed

continuous-integration/styleci/pr The StyleCI analysis has passed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@j-dexx j-dexx deleted the j-dexx:add_else_auth branch Mar 16, 2018

@GrahamCampbell GrahamCampbell changed the title from Add ElseAuth and ElseGuest Blade directives to [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