laravelのモデル内で__constructを使うと下記のようなエラーが出るのですが
解決策がわからず困っております。
同じ問題に直面した方がいればお手を貸していただければと
Unresolvable dependency resolving [Parameter #0 [ <required> array $attributes ]] in class App\Models\MyModel
App\Models\MyModel.php
public function __construct(array $attributes) { parent::__construct($attributes); //処理 }
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/11/22 01:36