お世話になります。
現在、Laravelで開発を行なっており、途中から
Controller新規作成時にタイトルのエラーが発生した為、お力添えを頂けますと幸いです。
<エラー内容>
ReflectionException (-1) Class App\Http\Controllers\AaaController does not exist
<エラー内容詳細>
以下の$reflector = new ReflectionClass($concrete);の箇所でエラーが
発生しているようでした。
/var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php } /** * Instantiate a concrete instance of the given type. * * @param string $concrete * @return mixed * * @throws \Illuminate\Contracts\Container\BindingResolutionException */ public function build($concrete) { // If the concrete type is actually a Closure, we will just execute it and // hand back the results of the functions, which allows functions to be // used as resolvers for more fine-tuned resolution of these objects. if ($concrete instanceof Closure) { return $concrete($this, $this->getLastParameterOverride()); } $reflector = new ReflectionClass($concrete); // If the type is not instantiable, the developer is attempting to resolve // an abstract type such as an Interface or Abstract Class and there is // no binding registered for the abstractions so we need to bail out. if (! $reflector->isInstantiable()) { return $this->notInstantiable($concrete); } $this->buildStack[] = $concrete; $constructor = $reflector->getConstructor(); // If there are no constructors, that means there are no dependencies then // we can just resolve the instances of the objects right away, without
<実施したこと>
Twitter認証系のインストール
composer require abraham/twitteroauth 上記を実施後に php artisan make:controller AaaController
該当ファイルがapp/Http/Controllersに作成されたことを
確認致しました。
<web.php>
Route::any('/aaa', 'AaaController@index');
<app/Https>
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class AaaController extends Controller { public function index(Request $req, $tag=null) { echo "test"; exit(); } } ~
宜しくお願い致します。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。