InvalidArgumentException Attribute [controller] does not existというエラーメッセージがでます。
・さらなるエラーメッセージ
* * @param string $key * @param mixed $value * @return $this * * @throws \InvalidArgumentException */ public function attribute($key, $value) { if (! in_array($key, $this->allowedAttributes)) { throw new InvalidArgumentException("Attribute [{$key}] does not exist."); } $this->attributes[Arr::get($this->aliases, $key, $key)] = $value; return $this; } /** * Route a resource to a controller. * * @param string $name
・routesにあるファイル
Route::controller('helo', 'HeloController');
こちらの第二引数のファイルが存在しないという意味でしょうか?
\app\Http\ControllersにHeloController.phpを作ったのですが、コントローラーに当たるルーティングの第二引数のファイルはすべてこのフォルダに入れればよいのではないのでしょうか?
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2018/01/14 11:46
2018/01/14 12:03
退会済みユーザー
2018/01/15 03:47