質問編集履歴
1
Roleモデルのソースを追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -199,3 +199,33 @@
|
|
199
199
|
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mydb.roles' doesn't exist
|
200
200
|
|
201
201
|
```
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
追記:
|
206
|
+
|
207
|
+
Roleモデルでの処理はありません。
|
208
|
+
|
209
|
+
```PHP
|
210
|
+
|
211
|
+
<?php
|
212
|
+
|
213
|
+
namespace App\Models;
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
use Illuminate\Database\Eloquent\Model;
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
class Role extends Model
|
224
|
+
|
225
|
+
{
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
}
|
230
|
+
|
231
|
+
```
|