質問編集履歴
1
Userのmigrationfileも追記しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -130,6 +130,78 @@
|
|
130
130
|
|
131
131
|
```
|
132
132
|
|
133
|
+
> **Usermigrationfile**
|
134
|
+
|
135
|
+
```
|
136
|
+
|
137
|
+
class CreateUsersTable extends Migration
|
138
|
+
|
139
|
+
{
|
140
|
+
|
141
|
+
/**
|
142
|
+
|
143
|
+
* Run the migrations.
|
144
|
+
|
145
|
+
*
|
146
|
+
|
147
|
+
* @return void
|
148
|
+
|
149
|
+
*/
|
150
|
+
|
151
|
+
public function up()
|
152
|
+
|
153
|
+
{
|
154
|
+
|
155
|
+
Schema::create('users', function (Blueprint $table) {
|
156
|
+
|
157
|
+
$table->bigIncrements('id');
|
158
|
+
|
159
|
+
$table->string('name');
|
160
|
+
|
161
|
+
$table->string('profile');
|
162
|
+
|
163
|
+
$table->string('image');
|
164
|
+
|
165
|
+
$table->string('email')->unique();
|
166
|
+
|
167
|
+
$table->timestamp('email_verified_at')->nullable();
|
168
|
+
|
169
|
+
$table->string('password');
|
170
|
+
|
171
|
+
$table->rememberToken();
|
172
|
+
|
173
|
+
$table->timestamps();
|
174
|
+
|
175
|
+
});
|
176
|
+
|
177
|
+
}
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
/**
|
182
|
+
|
183
|
+
* Reverse the migrations.
|
184
|
+
|
185
|
+
*
|
186
|
+
|
187
|
+
* @return void
|
188
|
+
|
189
|
+
*/
|
190
|
+
|
191
|
+
public function down()
|
192
|
+
|
193
|
+
{
|
194
|
+
|
195
|
+
Schema::dropIfExists('users');
|
196
|
+
|
197
|
+
}
|
198
|
+
|
199
|
+
}
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
```
|
204
|
+
|
133
205
|
|
134
206
|
|
135
207
|
##仮説と仮説を確認するための問題点
|