File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 10
10
],
11
11
"require" : {
12
12
"php" : " >=7.4" ,
13
- "illuminate/support" : " ^9.0" ,
14
- "illuminate/database" : " ^9.0" ,
15
- "illuminate/auth" : " ^9.0"
13
+ "laravel/framework" : " ^10.10"
16
14
},
17
15
"license" : " MIT" ,
18
16
"autoload" : {
19
17
"psr-4" : {
20
- "Lazycode\\ Permissions \\ " : " src/"
18
+ "Lazycode\\ Permissions\\ " : " src/"
21
19
}
22
20
},
23
21
"authors" : [
34
32
"format" : " php-cs-fixer fix --allow-risky=yes" ,
35
33
"analyse" : " phpstan analyse"
36
34
}
37
- }
35
+ }
Original file line number Diff line number Diff line change @@ -10,13 +10,13 @@ public function up()
10
10
{
11
11
Schema::create ('roles ' , function (Blueprint $ table ) {
12
12
$ table ->id ();
13
- $ table ->string ('name ' );
13
+ $ table ->string ('name ' )-> unique ()-> index () ;
14
14
$ table ->timestamps ();
15
15
});
16
16
17
17
Schema::create ('permissions ' , function (Blueprint $ table ) {
18
18
$ table ->id ();
19
- $ table ->string ('name ' );
19
+ $ table ->string ('name ' )-> unique ()-> index () ;
20
20
$ table ->timestamps ();
21
21
});
22
22
You can’t perform that action at this time.
0 commit comments