File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ public function roles(): BelongsToMany;
1818 * 是否有此权限.
1919 *
2020 * @param string $permission
21- * @return boolean
21+ *
22+ * @return bool
2223 */
2324 public function can ($ permission );
2425
Original file line number Diff line number Diff line change 22
33namespace xiaodi \Permission \Traits ;
44
5- use xiaodi \Permission \Contract \RoleContract ;
65use think \model \relation \BelongsToMany ;
6+ use xiaodi \Permission \Contract \RoleContract ;
77
88trait Permission
99{
Original file line number Diff line number Diff line change 22
33namespace xiaodi \Permission \Traits ;
44
5+ use think \model \relation \BelongsToMany ;
56use xiaodi \Permission \Contract \PermissionContract ;
67use xiaodi \Permission \Contract \UserContract ;
7- use think \model \relation \BelongsToMany ;
88
99trait Role
1010{
Original file line number Diff line number Diff line change 33namespace xiaodi \Permission \Traits ;
44
55use think \Collection ;
6- use xiaodi \Permission \Model \Permission ;
7- use xiaodi \Permission \Contract \RoleContract ;
86use think \model \relation \BelongsToMany ;
7+ use xiaodi \Permission \Contract \RoleContract ;
8+ use xiaodi \Permission \Model \Permission ;
99
1010trait User
1111{
You can’t perform that action at this time.
0 commit comments