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

Bug with guard in new Blade Directives #20162

Closed
khanhvu14 opened this issue Jul 19, 2017 · 5 comments
Closed

Bug with guard in new Blade Directives #20162

khanhvu14 opened this issue Jul 19, 2017 · 5 comments

Comments

@khanhvu14
Copy link

khanhvu14 commented Jul 19, 2017

  • Laravel Version: 5.4.29
  • PHP Version: 7.1
  • Database Driver & Version:

Description:

@auth
logged
@endauth

I have a error with $guard is null

Steps To Reproduce:

In my project I fixed:
@auth('web')
logged
@endauth

In new Blade Directives, set default $guard = 'web'.

@m1guelpf
Copy link
Contributor

m1guelpf commented Jul 19, 2017

@khanhvu14 What do you mean?

In new Blade Directives, set default $guard = 'web'.

@it-can
Copy link
Contributor

it-can commented Jul 19, 2017

Same error I described here: #20114

@joshmanders
Copy link
Contributor

You are using it wrong.

@auth()
logged
@endauth

This is the correct way.

@m1guelpf
Copy link
Contributor

@joshmanders I can make it work the other way

@m1guelpf
Copy link
Contributor

m1guelpf commented Jul 19, 2017

@khanhvu14 @joshmanders @it-can #20166 should fix this.

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

No branches or pull requests

5 participants