Laravelのモデルキャストでenum arrayを使用する方法
このように入力すればよい。
GGAMI
protected $casts = [
'countries' => AsEnumArrayObject::class.':'.Country::class,
];このように入力すればよい。
このように入力すればよい。
protected $casts = [
'countries' => AsEnumArrayObject::class.':'.Country::class,
];このように入力すればよい。