Ошибка

Вернитесь на главную страницу

Illuminate\Database\Eloquent\ModelNotFoundException: No query results for model [App\ShopProduct]. in /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php:129
Stack trace:
#0 [internal function]: Illuminate\Database\Eloquent\Builder->findOrFail('161')
#1 /var/www/html/bootstrap/cache/compiled.php(11301): call_user_func_array(Array, Array)
#2 [internal function]: Illuminate\Database\Eloquent\Model->__call('findOrFail', Array)
#3 /var/www/html/bootstrap/cache/compiled.php(11306): call_user_func_array(Array, Array)
#4 /var/www/html/app/Http/Controllers/ShopFrontController.php(659): Illuminate\Database\Eloquent\Model::__callStatic('findOrFail', Array)
#5 [internal function]: App\Http\Controllers\ShopFrontController->getProduct('161')
#6 /var/www/html/bootstrap/cache/compiled.php(8927): call_user_func_array(Array, Array)
#7 /var/www/html/bootstrap/cache/compiled.php(8996): Illuminate\Routing\Controller->callAction('getProduct', Array)
#8 /var/www/html/bootstrap/cache/compiled.php(8976): Illuminate\Routing\ControllerDispatcher->call(Object(App\Http\Controllers\ShopFrontController), Object(Illuminate\Routing\Route), 'getProduct')
#9 [internal function]: Illuminate\Routing\ControllerDispatcher->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#10 /var/www/html/bootstrap/cache/compiled.php(9647): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#11 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#12 /var/www/html/bootstrap/cache/compiled.php(9629): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#13 /var/www/html/bootstrap/cache/compiled.php(8977): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#14 /var/www/html/bootstrap/cache/compiled.php(8962): Illuminate\Routing\ControllerDispatcher->callWithinStack(Object(App\Http\Controllers\ShopFrontController), Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'getProduct')
#15 /var/www/html/bootstrap/cache/compiled.php(7911): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'App\\Http\\Contro...', 'getProduct')
#16 /var/www/html/bootstrap/cache/compiled.php(7882): Illuminate\Routing\Route->runWithCustomDispatcher(Object(Illuminate\Http\Request))
#17 /var/www/html/bootstrap/cache/compiled.php(7535): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))
#18 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /var/www/html/bootstrap/cache/compiled.php(9647): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#20 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#21 /var/www/html/bootstrap/cache/compiled.php(9629): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#22 /var/www/html/bootstrap/cache/compiled.php(7536): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#23 /var/www/html/bootstrap/cache/compiled.php(7524): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#24 /var/www/html/bootstrap/cache/compiled.php(7509): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#25 /var/www/html/bootstrap/cache/compiled.php(2310): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#26 [internal function]: Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#27 /var/www/html/bootstrap/cache/compiled.php(9647): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#28 /var/www/html/bootstrap/cache/compiled.php(2925): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#29 [internal function]: Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /var/www/html/bootstrap/cache/compiled.php(9639): call_user_func_array(Array, Array)
#31 /var/www/html/bootstrap/cache/compiled.php(12998): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#32 [internal function]: Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#33 /var/www/html/bootstrap/cache/compiled.php(9639): call_user_func_array(Array, Array)
#34 /var/www/html/app/Http/Middleware/CheckUserSession.php(101): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#35 [internal function]: App\Http\Middleware\CheckUserSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#36 /var/www/html/bootstrap/cache/compiled.php(9639): call_user_func_array(Array, Array)
#37 /var/www/html/bootstrap/cache/compiled.php(11590): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 [internal function]: Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 /var/www/html/bootstrap/cache/compiled.php(9639): call_user_func_array(Array, Array)
#40 /var/www/html/bootstrap/cache/compiled.php(12735): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 [internal function]: Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /var/www/html/bootstrap/cache/compiled.php(9639): call_user_func_array(Array, Array)
#43 /var/www/html/bootstrap/cache/compiled.php(12672): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 [internal function]: Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /var/www/html/bootstrap/cache/compiled.php(9639): call_user_func_array(Array, Array)
#46 /var/www/html/bootstrap/cache/compiled.php(2982): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#47 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#48 /var/www/html/bootstrap/cache/compiled.php(9639): call_user_func_array(Array, Array)
#49 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /var/www/html/bootstrap/cache/compiled.php(9629): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#51 /var/www/html/bootstrap/cache/compiled.php(2257): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#52 /var/www/html/bootstrap/cache/compiled.php(2240): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#53 /var/www/html/public/index.php(56): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#54 /var/www/html/index.php(28): require_once('/var/www/html/p...')
#55 {main}