質問編集履歴
1
実行したマイグレーションファイルを追加致しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -27,3 +27,157 @@
|
|
27
27
|
|
28
28
|
|
29
29
|
ご存知の方はご教示して頂けたら幸いです。
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
【補足情報】
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
```ここに言語を入力
|
38
|
+
|
39
|
+
<?php
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
use Illuminate\Support\Facades\Schema;
|
44
|
+
|
45
|
+
use Illuminate\Database\Schema\Blueprint;
|
46
|
+
|
47
|
+
use Illuminate\Database\Migrations\Migration;
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
class CreateUsersTable extends Migration
|
52
|
+
|
53
|
+
{
|
54
|
+
|
55
|
+
/**
|
56
|
+
|
57
|
+
* Run the migrations.
|
58
|
+
|
59
|
+
*
|
60
|
+
|
61
|
+
* @return void
|
62
|
+
|
63
|
+
*/
|
64
|
+
|
65
|
+
public function up()
|
66
|
+
|
67
|
+
{
|
68
|
+
|
69
|
+
Schema::create('users', function (Blueprint $table) {
|
70
|
+
|
71
|
+
$table->increments('id');
|
72
|
+
|
73
|
+
$table->string('name');
|
74
|
+
|
75
|
+
$table->string('email')->unique();
|
76
|
+
|
77
|
+
$table->string('password');
|
78
|
+
|
79
|
+
$table->rememberToken();
|
80
|
+
|
81
|
+
$table->timestamps();
|
82
|
+
|
83
|
+
});
|
84
|
+
|
85
|
+
}
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
/**
|
90
|
+
|
91
|
+
* Reverse the migrations.
|
92
|
+
|
93
|
+
*
|
94
|
+
|
95
|
+
* @return void
|
96
|
+
|
97
|
+
*/
|
98
|
+
|
99
|
+
public function down()
|
100
|
+
|
101
|
+
{
|
102
|
+
|
103
|
+
Schema::dropIfExists('users');
|
104
|
+
|
105
|
+
}
|
106
|
+
|
107
|
+
}
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
```
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
```
|
116
|
+
|
117
|
+
<?php
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
use Illuminate\Support\Facades\Schema;
|
122
|
+
|
123
|
+
use Illuminate\Database\Schema\Blueprint;
|
124
|
+
|
125
|
+
use Illuminate\Database\Migrations\Migration;
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
class CreatePasswordResetsTable extends Migration
|
130
|
+
|
131
|
+
{
|
132
|
+
|
133
|
+
/**
|
134
|
+
|
135
|
+
* Run the migrations.
|
136
|
+
|
137
|
+
*
|
138
|
+
|
139
|
+
* @return void
|
140
|
+
|
141
|
+
*/
|
142
|
+
|
143
|
+
public function up()
|
144
|
+
|
145
|
+
{
|
146
|
+
|
147
|
+
Schema::create('password_resets', function (Blueprint $table) {
|
148
|
+
|
149
|
+
$table->string('email')->index();
|
150
|
+
|
151
|
+
$table->string('token')->index();
|
152
|
+
|
153
|
+
$table->timestamp('created_at')->nullable();
|
154
|
+
|
155
|
+
});
|
156
|
+
|
157
|
+
}
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
/**
|
162
|
+
|
163
|
+
* Reverse the migrations.
|
164
|
+
|
165
|
+
*
|
166
|
+
|
167
|
+
* @return void
|
168
|
+
|
169
|
+
*/
|
170
|
+
|
171
|
+
public function down()
|
172
|
+
|
173
|
+
{
|
174
|
+
|
175
|
+
Schema::dropIfExists('password_resets');
|
176
|
+
|
177
|
+
}
|
178
|
+
|
179
|
+
}
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
```
|