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.4] Make SessionGuard Macroable #18796

Merged
merged 1 commit into from
Apr 13, 2017
Merged

Conversation

calebporzio
Copy link
Contributor

I often find it convenient to shortcut code like:

auth()->user()->company

By adding "Macroable" to the SessionGuard, we open up possibilities for things like:

auth()->company

@taylorotwell taylorotwell merged commit 85097f6 into laravel:5.4 Apr 13, 2017
@antonkomarev
Copy link
Contributor

@calebporzio thats awesome!

@calebporzio
Copy link
Contributor Author

Ya, isn't that fun? all sorts of nice conveniences can come of this.

@antonkomarev
Copy link
Contributor

antonkomarev commented Apr 14, 2017

It looks like all Laravel classes will be Macroable soon and it will be rebranded to Macrolavel :}

@m1guelpf
Copy link
Contributor

@a-komarev It helps developers extend Laravel functionality... so it's normal everything is Macroable

@calebporzio
Copy link
Contributor Author

@a-komarev one day... one day...

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