Last active
September 4, 2017 01:19
-
-
Save corean/9326413ece1fdc9348a6c298579e2df4 to your computer and use it in GitHub Desktop.
[Laravel-Permission]
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
| //Role 지정 | |
| $user->assignRole('관리자') | |
| //$user의 모든 roles 리턴 | |
| $user->roles()->pluck('name'); | |
| //Role 삭제 | |
| $user->removeRole('writer'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment