Skip to content

Commit 3f6ca72

Browse files
committed
update .env.example
1 parent fde7e41 commit 3f6ca72

27 files changed

+1320
-984
lines changed

.env.example

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
APP_NAME=Laravel
22
APP_ENV=local
3-
APP_KEY=
3+
APP_KEY=base64:UrQfqSTf3hsGIcldX1Y/bsO6WVLThXETt1GHZPKrq/0=
44
APP_DEBUG=true
55
APP_URL=http://localhost
66

@@ -19,8 +19,8 @@ CACHE_DRIVER=file
1919
QUEUE_CONNECTION=sync
2020
SESSION_DRIVER=cookie
2121
SESSION_LIFETIME=600
22-
SESSION_DOMAIN="127.0.0.1"
23-
SANCTUM_STATEFUL_DOMAIN=127.0.0.1:8000
22+
SESSION_DOMAIN="null"
23+
SANCTUM_STATEFUL_DOMAINs="127.0.0.1:8000"
2424

2525
MEMCACHED_HOST=127.0.0.1
2626

database/seeders/UserSeeder.php

Lines changed: 154 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -18,95 +18,163 @@ public function run()
1818
{
1919
$password = Hash::make('password');
2020

21-
$user1 = [
22-
'name' => 'Mr. Super Admin',
23-
'email' => 'sadmin@sadmin.com',
24-
'role_type' => 'administrator',
25-
'password' => $password,
26-
'created_at' => Carbon::now(),
21+
$users = [
22+
[
23+
'name' => 'Mr. Super Admin',
24+
'email' => 'sadmin@sadmin.com',
25+
'role_type' => 'administrator',
26+
'password' => $password,
27+
'created_at' => Carbon::now(),
28+
],
29+
[
30+
'name' => 'Mr. Admin',
31+
'email' => 'admin@admin.com',
32+
'role_type' => 'administrator',
33+
'password' => $password,
34+
'created_at' => Carbon::now(),
35+
],
36+
[
37+
'name' => 'Mr. Author',
38+
'email' => 'author@author.com',
39+
'role_type' => 'administrator',
40+
'password' => $password,
41+
'created_at' => Carbon::now(),
42+
],
43+
[
44+
'name' => 'Mr. Editor',
45+
'email' => 'editor@editor.com',
46+
'role_type' => 'administrator',
47+
'password' => $password,
48+
'created_at' => Carbon::now(),
49+
],
50+
[
51+
'name' => 'Mr. User 1',
52+
'email' => 'user1@user.com',
53+
'role_type' => 'user',
54+
'password' => $password,
55+
'created_at' => Carbon::now(),
56+
],
57+
[
58+
'name' => 'Mr. User 2',
59+
'email' => 'user2@user.com',
60+
'role_type' => 'user',
61+
'password' => $password,
62+
'created_at' => Carbon::now(),
63+
],
64+
[
65+
'name' => 'Mr. User 3',
66+
'email' => 'user3@user.com',
67+
'role_type' => 'user',
68+
'password' => $password,
69+
'created_at' => Carbon::now(),
70+
],
71+
[
72+
'name' => 'Mr. User 4',
73+
'email' => 'user4@user.com',
74+
'role_type' => 'user',
75+
'password' => $password,
76+
'created_at' => Carbon::now(),
77+
],
78+
[
79+
'name' => 'Mr. User',
80+
'email' => 'user@user.com',
81+
'role_type' => 'user',
82+
'password' => $password,
83+
'created_at' => Carbon::now(),
84+
],
2785
];
2886

29-
DB::table('users')->insert($user1);
30-
31-
$user2 = [
32-
'name' => 'Mr. Admin',
33-
'email' => 'admin@admin.com',
34-
'role_type' => 'administrator',
35-
'password' => $password,
36-
'created_at' => Carbon::now(),
37-
];
38-
39-
DB::table('users')->insert($user2);
40-
41-
$user3 = [
42-
'name' => 'Mr. Author',
43-
'email' => 'author@author.com',
44-
'role_type' => 'administrator',
45-
'password' => $password,
46-
'created_at' => Carbon::now(),
47-
];
48-
49-
DB::table('users')->insert($user3);
50-
51-
$user4 = [
52-
'name' => 'Mr. Editor',
53-
'email' => 'editor@editor.com',
54-
'role_type' => 'administrator',
55-
'password' => $password,
56-
'created_at' => Carbon::now(),
57-
];
58-
59-
DB::table('users')->insert($user4);
60-
61-
$user5 = [
62-
'name' => 'Mr. User 1',
63-
'email' => 'user1@user.com',
64-
'role_type' => 'user',
65-
'password' => $password,
66-
'created_at' => Carbon::now(),
67-
];
68-
69-
DB::table('users')->insert($user5);
70-
71-
$user6 = [
72-
'name' => 'Mr. User 2',
73-
'email' => 'user2@user.com',
74-
'role_type' => 'user',
75-
'password' => $password,
76-
'created_at' => Carbon::now(),
77-
];
78-
79-
DB::table('users')->insert($user6);
80-
81-
$user7 = [
82-
'name' => 'Mr. User 3',
83-
'email' => 'user3@user.com',
84-
'role_type' => 'user',
85-
'password' => $password,
86-
'created_at' => Carbon::now(),
87-
];
88-
89-
DB::table('users')->insert($user7);
90-
91-
$user8 = [
92-
'name' => 'Mr. User 4',
93-
'email' => 'user4@user.com',
94-
'role_type' => 'user',
95-
'password' => $password,
96-
'created_at' => Carbon::now(),
97-
];
98-
99-
DB::table('users')->insert($user8);
87+
DB::table('users')->insert($users);
88+
89+
// $user1 = [
90+
// 'name' => 'Mr. Super Admin',
91+
// 'email' => 'sadmin@sadmin.com',
92+
// 'role_type' => 'administrator',
93+
// 'password' => $password,
94+
// 'created_at' => Carbon::now(),
95+
// ];
96+
97+
// DB::table('users')->insert($user1);
98+
99+
// $user2 = [
100+
// 'name' => 'Mr. Admin',
101+
// 'email' => 'admin@admin.com',
102+
// 'role_type' => 'administrator',
103+
// 'password' => $password,
104+
// 'created_at' => Carbon::now(),
105+
// ];
106+
107+
// DB::table('users')->insert($user2);
108+
109+
// $user3 = [
110+
// 'name' => 'Mr. Author',
111+
// 'email' => 'author@author.com',
112+
// 'role_type' => 'administrator',
113+
// 'password' => $password,
114+
// 'created_at' => Carbon::now(),
115+
// ];
116+
117+
// DB::table('users')->insert($user3);
118+
119+
// $user4 = [
120+
// 'name' => 'Mr. Editor',
121+
// 'email' => 'editor@editor.com',
122+
// 'role_type' => 'administrator',
123+
// 'password' => $password,
124+
// 'created_at' => Carbon::now(),
125+
// ];
126+
127+
// DB::table('users')->insert($user4);
128+
129+
// $user5 = [
130+
// 'name' => 'Mr. User 1',
131+
// 'email' => 'user1@user.com',
132+
// 'role_type' => 'user',
133+
// 'password' => $password,
134+
// 'created_at' => Carbon::now(),
135+
// ];
136+
137+
// DB::table('users')->insert($user5);
138+
139+
// $user6 = [
140+
// 'name' => 'Mr. User 2',
141+
// 'email' => 'user2@user.com',
142+
// 'role_type' => 'user',
143+
// 'password' => $password,
144+
// 'created_at' => Carbon::now(),
145+
// ];
146+
147+
// DB::table('users')->insert($user6);
148+
149+
// $user7 = [
150+
// 'name' => 'Mr. User 3',
151+
// 'email' => 'user3@user.com',
152+
// 'role_type' => 'user',
153+
// 'password' => $password,
154+
// 'created_at' => Carbon::now(),
155+
// ];
156+
157+
// DB::table('users')->insert($user7);
158+
159+
// $user8 = [
160+
// 'name' => 'Mr. User 4',
161+
// 'email' => 'user4@user.com',
162+
// 'role_type' => 'user',
163+
// 'password' => $password,
164+
// 'created_at' => Carbon::now(),
165+
// ];
166+
167+
// DB::table('users')->insert($user8);
100168

101169

102-
$user9 = [
103-
'name' => 'Mr. User',
104-
'email' => 'user@user.com',
105-
'role_type' => 'user',
106-
'password' => $password,
107-
'created_at' => Carbon::now(),
108-
];
109-
110-
DB::table('users')->insert($user9);
170+
// $user9 = [
171+
// 'name' => 'Mr. User',
172+
// 'email' => 'user@user.com',
173+
// 'role_type' => 'user',
174+
// 'password' => $password,
175+
// 'created_at' => Carbon::now(),
176+
// ];
177+
178+
// DB::table('users')->insert($user9);
111179
}
112180
}

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
"watch-poll": "mix watch -- --watch-options-poll=1000",
88
"hot": "mix watch --hot",
99
"prod": "npm run production",
10-
"production": "mix --production"
10+
"production": "mix --production",
11+
"format-vue": "npx prettier --print-width 80 --tab-width 4 --arrow-parens avoid --single-quote --trailing-comma es5 --write resources/js/**/*.vue",
12+
"format-js": "npx prettier --print-width 80 --tab-width 4 --arrow-parens avoid --single-quote --trailing-comma es5 --write resources/js/**/*.js",
13+
"format-php": "npx prettier --print-width 80 --tab-width 4 --single-quote --trailing-comma es5 --write app/**/*.php"
1114
},
1215
"devDependencies": {
1316
"axios": "^0.21",

resources/js/Router/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import VueRouter from 'vue-router'
2-
import routes from './routes'
1+
import VueRouter from 'vue-router';
2+
import routes from './routes';
33

44
const Router = new VueRouter({
5-
mode : 'history',
5+
mode: 'history',
66
routes,
7-
})
7+
});
88

9-
export default Router
9+
export default Router;

0 commit comments

Comments
 (0)