File tree Expand file tree Collapse file tree 4 files changed +9
-10
lines changed Expand file tree Collapse file tree 4 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 12
12
13
13
` php artisan passport:install --force `
14
14
15
- ## 5、复制第4步生成的密钥到.env文件中,填写为PERSONAL_Client_Secret和PASSPORT_Client_Secret的参数
15
+ ## 5、复制第4步生成的密钥到.env文件中,填写为PERSONAL_CLIENT_SECRET和PASSPORT_CLIENT_SECRET的参数
16
16
PERSONAL_CLIENT_ID=1
17
-
18
17
PERSONAL_CLIENT_SECRET=
19
18
20
19
PASSPORT_CLIENT_ID=2
21
-
22
20
PASSPORT_CLIENT_SECRET=
23
21
24
22
## 6、生成用户数据和各种结构数据
Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ PUSHER_APP_ID=
32
32
PUSHER_APP_KEY =
33
33
PUSHER_APP_SECRET =
34
34
35
- PERSONAL_Client_ID = 1
36
- PERSONAL_Client_Secret =
35
+ PERSONAL_CLIENT_ID = 1
36
+ PERSONAL_CLIENT_SECRET =
37
37
38
- PASSPORT_Client_ID = 2
39
- PASSPORT_Client_Secret =
38
+ PASSPORT_CLIENT_ID = 2
39
+ PASSPORT_CLIENT_SECRET =
Original file line number Diff line number Diff line change @@ -30,12 +30,12 @@ public function up()
30
30
$ table ->unsignedTinyInteger ('state ' )->comment ('人员状态(1->正常 2->调出 3->退出 4->停薪留职) ' )->default (1 );
31
31
$ table ->unsignedTinyInteger ('teaching_id ' )->comment ('教学科目Id ' )->nullable ;
32
32
$ table ->timestamps ();
33
- $ table ->comment ('教职工信息表 ' );
34
33
$ table ->unique ('card_id ' );
35
34
$ table ->unique ('phone ' );
36
35
$ table ->unique ('phone2 ' );
37
- $ table ->foreign ('teaching_id ' )->reference ('id ' )->on ('yz_teaching ' );
38
- $ table ->foreign ('nation_id ' )->reference ('id ' )->on ('yz_nation ' );
36
+ // 要设置外键的话 必须先保证相应的表格先存在
37
+ // $table->foreign('teaching_id')->reference('id')->on('yz_teaching');
38
+ // $table->foreign('nation_id')->reference('id')->on('yz_nation');
39
39
});
40
40
}
41
41
Original file line number Diff line number Diff line change @@ -14,5 +14,6 @@ public function run()
14
14
$ this ->call (UsersTableSeeder::class);
15
15
$ this ->call (RolesTableSeeder::class);
16
16
$ this ->call (SessionsTableSeeder::class);
17
+ $ this ->call (PermissionsTableSeeder::class);
17
18
}
18
19
}
You can’t perform that action at this time.
0 commit comments