Skip to content

[5.6] Add ElseAuth and ElseGuest Blade directives - #23569

Merged
taylorotwell merged 1 commit into
laravel:5.6from
j-dexx:add_else_auth
Mar 16, 2018
Merged

[5.6] Add ElseAuth and ElseGuest Blade directives#23569
taylorotwell merged 1 commit into
laravel:5.6from
j-dexx:add_else_auth

Conversation

@j-dexx

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

Copy link
Copy Markdown
Contributor

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.

2 participants