laravel で InvalidArgumentException: Attribute [gest] does not exist のエラーではまる Laravel
laravel で InvalidArgumentException: Attribute [gest] does not exist のエラーではまる
原因は、routes/api.php にて、
Route::get( のところを
Route::gest( とスペルミスしてたから。
処理は他のルートを通ってたんだけどね。ありそうな単語だからきづかなかったわ
InvalidArgumentException: Attribute [gest] does not exist. in file /var/www/html/site1/vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php on line 92
#0 /var/www/html/site1/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1236): Illuminate¥Routing¥RouteRegistrar->attribute( gest login )
#1 /var/www/html/site1/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(261): Illuminate¥Routing¥Router->__call( gest Array)
#2 /var/www/html/site1/routes/api.php(26): Illuminate¥Support¥Facades¥Facade::__callStatic( gest Array)
#3 /var/www/html/site1/vendor/laravel/framework/src/Illuminate/Routing/RouteFileRegistrar.php(35): require( /var/www/html/s... )
#4 /var/www/html/site1/vendor/laravel/framework/src/Illuminate/Routing/Router.php(416): Illuminate¥Routing¥RouteFileRegistrar->register( /var/www/html/s... )
#5 /var/www/html/site1/vendor/laravel/framework/src/Illuminate/Routing/Router.php(374): Illuminate¥Routing¥Router->loadRoutes( /var/www/html/s... )
#6 /var/www/html/site1/vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php(134): Illuminate¥Routing¥Router->group(Array /var/www/html/s... )
#7 /var/www/html/site1/app/Providers/RouteServiceProvider.php(78): Illuminate¥Routing¥RouteRegistrar->group( /var/www/html/s... )
#8 /var/www/html/site1/app/Providers/RouteServiceProvider.php(45): App¥Providers¥RouteServiceProvider->mapApiRoutes()
#9 [internal function]: App¥Providers¥RouteServiceProvider->map()
#10 /var/www/html/site1/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(32): call_user_func_array(Array Array)
#11 /var/www/html/site1/vendor/laravel/framework/src/Illuminate/Container/Util.php(36): Illuminate¥Container¥BoundMethod::Illuminate¥Container¥{closure}()
#12 /var/www/html/site1/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(90): Illuminate¥Container¥Util::unwrapIfClosure(Object(Closure))
#13 /var/www/html/site1/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(34): Illuminate¥Container¥BoundMethod::callBoundMethod(Object(Illuminate¥Foundation¥Application) Array Object(Closure))
#14 /var/www/html/site1/vendor/laravel/framework/src/Illuminate/Container/Container.php(590): Illuminate¥Container¥BoundMethod::call(Object(Illuminate¥Foundation¥Application) Array Array NULL)
#15 /var/www/html/site1/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php(87): Illuminate¥Container¥Container->call(Array)
#16 /var/www/html/site1/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php(36): Illuminate¥Foundation¥Support¥Providers¥RouteServiceProvider->loadRoutes()
#17 /var/www/html/site1/app/Providers/RouteServiceProvider.php(35): Illuminate¥Foundation¥Support¥Providers¥RouteServiceProvider->boot()
#18 [internal function]: App¥Providers¥RouteServiceProvider->boot()
#19 /var/www/html/site1/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(32): call_user_func_array(Array Array)
#20 /var/www/html/site1/vendor/laravel/framework/src/Illuminate/Container/Util.php(36): Illuminate¥Container¥BoundMethod::Illuminate¥Container¥{closure}()
#21 /var/www/html/site1/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(90): Illuminate¥Container¥Util::unwrapIfClosure(Object(Closure))
#22 /var/www/html/site1/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(34): Illuminate¥Container¥BoundMethod::callBoundMethod(Object(Illuminate¥Foundation¥Application) Array Object(Closure))
#23 /var/www/html/site1/vendor/laravel/framework/src/Illuminate/Container/Container.php(590): Illuminate¥Container¥BoundMethod::call(Object(Illuminate¥Foundation¥Application) Array Array NULL)
#24 /var/www/html/site1/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(858): Illuminate¥Container¥Container->call(Array)