Last active
September 2, 2017 09:27
-
-
Save FrankFlow/119ff725efbca58a94d04dd1704d3f2e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Illuminate\Support\Facades\Blade; | |
| Blade::if('editor', function () { | |
| return auth()->check() && auth()->user()->isEditor(); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment