Skip to content

[5.4] Make SessionGuard Macroable - #18796

Merged
taylorotwell merged 1 commit into
laravel:5.4from
calebporzio:auth-macros
Apr 13, 2017
Merged

[5.4] Make SessionGuard Macroable#18796
taylorotwell merged 1 commit into
laravel:5.4from
calebporzio:auth-macros

Conversation

@calebporzio

Copy link
Copy Markdown
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
Copy Markdown
Contributor

@calebporzio thats awesome!

@calebporzio

Copy link
Copy Markdown
Contributor Author

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

@antonkomarev

antonkomarev commented Apr 14, 2017

Copy link
Copy Markdown
Contributor

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

@m1guelpf

Copy link
Copy Markdown
Contributor

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

@calebporzio

Copy link
Copy Markdown
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