File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 7
7
# from src.masonite_permission.models.role import Role
8
8
# from tests.integrations.app.models.User import User
9
9
10
+
10
11
class WelcomeController (Controller ):
11
12
"""WelcomeController Controller Class."""
12
13
13
14
def show (self , view : View ):
14
15
return view .render ("welcome" )
15
16
16
17
def test (self ):
17
- """ users = [{
18
+ """users = [{
18
19
"name": "John Doe",
19
20
"email": "john@doe.com",
20
21
"password": "capslock",
@@ -61,7 +62,7 @@ def test(self):
61
62
62
63
user = User.first()
63
64
role = Role.where("slug", "admin").first()
64
- permission = Permission.where("slug", "create-user").first() """
65
+ permission = Permission.where("slug", "create-user").first()"""
65
66
66
67
"""Role related methods
67
68
Methods:
Original file line number Diff line number Diff line change 8
8
| A quick description
9
9
|
10
10
"""
11
-
You can’t perform that action at this time.
0 commit comments