回答編集履歴
1
誤送信
answer
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
> Laravelのバージョンは8.8です。
|
|
2
2
|
|
|
3
|
+
8は`booted`だと
|
|
4
|
+
https://readouble.com/laravel/8.x/ja/eloquent.html
|
|
5
|
+
|
|
6
|
+
```
|
|
3
7
|
protected static function boot()
|
|
4
|
-
|
|
8
|
+
↓
|
|
5
9
|
protected static function booted()
|
|
6
|
-
|
|
10
|
+
```
|
|
7
|
-
https://readouble.com/laravel/8.x/ja/eloquent.html
|