Русское сообщество разработки на PHP-фреймворке Laravel.
Ты не вошёл. Вход тут.
В различных видео, при работе в Laravel все используют какую-то страницу там на чарном фоне много информации, если косяки в коде...
У меня же на белом фоне Whoops, looks like something went wrong.
Как такую панельку поставить.... помойму это не стандартная laravel
Спасибо!
Не в сети
Нужно переключить среду разработки на development в файле .env, что в корне поставьте
APP_ENV=local
APP_DEBUG=true
Не в сети
https://github.com/laravel/laravel/blob … pp.php#L16 поставьте в true
If you think it’s expensive to hire a professional to do the job, wait until you hire an amateur.
Не в сети
ребят помогите ошибка in C:\OpenServer\domains\laravelTest.ru\vendor\symfony\routing\Symfony\Component\Routing\Route.php line 643
at Route->sanitizeRequirement('adminModel', '') in Route.php line 531
at Route->addRequirements(array('adminModelId' => '[0-9]+', 'adminModel' => '', 'adminWildcard' => '.*')) in Route.php line 516
at Route->setRequirements(array('adminModelId' => '[0-9]+', 'adminModel' => '', 'adminWildcard' => '.*')) in Route.php line 91
at Route->__construct('admin/login', array(), array('adminModelId' => '[0-9]+', 'adminModel' => '', 'adminWildcard' => '.*'), array(), '') in Route.php line 241
at Route->compileRoute() in Route.php line 216
at Route->matches(object(Request), true) in RouteCollection.php line 222
at RouteCollection->Illuminate\Routing\{closure}('admin/login', object(Route))
at call_user_func(object(Closure), 'admin/login', object(Route)) in Arr.php line 158
at Arr::first(array('/' => object(Route), 'home' => object(Route), 'auth/register/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/login/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/logout/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/{_missing}' => object(Route), 'password/email/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/reset/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/{_missing}' => object(Route), 'admin/{adminModel}/async/{adminDisplayName?}' => object(Route), 'admin/assets/images/all' => object(Route), 'admin/login' => object(Route), 'admin/assets/lang' => object(Route), 'admin/logout' => object(Route), 'admin/{adminModel}' => object(Route), 'admin/{adminModel}/create' => object(Route), 'admin/{adminModel}/{adminModelId}/edit' => object(Route), 'admin/{adminWildcard}' => object(Route)), object(Closure), null) in helpers.php line 150
at array_first(array('/' => object(Route), 'home' => object(Route), 'auth/register/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/login/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/logout/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/{_missing}' => object(Route), 'password/email/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/reset/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/{_missing}' => object(Route), 'admin/{adminModel}/async/{adminDisplayName?}' => object(Route), 'admin/assets/images/all' => object(Route), 'admin/login' => object(Route), 'admin/assets/lang' => object(Route), 'admin/logout' => object(Route), 'admin/{adminModel}' => object(Route), 'admin/{adminModel}/create' => object(Route), 'admin/{adminModel}/{adminModelId}/edit' => object(Route), 'admin/{adminWildcard}' => object(Route)), object(Closure)) in RouteCollection.php line 223
at RouteCollection->check(array('/' => object(Route), 'home' => object(Route), 'auth/register/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/login/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/logout/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/{_missing}' => object(Route), 'password/email/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/reset/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/{_missing}' => object(Route), 'admin/{adminModel}/async/{adminDisplayName?}' => object(Route), 'admin/assets/images/all' => object(Route), 'admin/login' => object(Route), 'admin/assets/lang' => object(Route), 'admin/logout' => object(Route), 'admin/{adminModel}' => object(Route), 'admin/{adminModel}/create' => object(Route), 'admin/{adminModel}/{adminModelId}/edit' => object(Route), 'admin/{adminWildcard}' => object(Route)), object(Request)) in RouteCollection.php line 128
at RouteCollection->match(object(Request)) in Router.php line 729
at Router->findRoute(object(Request)) in Router.php line 652
at Router->dispatchToRoute(object(Request)) in Router.php line 628
at Router->dispatch(object(Request)) in Kernel.php line 214
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 141
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in VerifyCsrfToken.php line 43
at VerifyCsrfToken->handle(object(Request), object(Closure)) in VerifyCsrfToken.php line 17
at VerifyCsrfToken->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 55
at ShareErrorsFromSession->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in StartSession.php line 61
at StartSession->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 36
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 40
at EncryptCookies->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 42
at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 101
at Pipeline->then(object(Closure)) in Kernel.php line 115
at Kernel->sendRequestThroughRouter(object(Request)) in C:\OpenServer\domains\laravelTest.ru\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php line 84
at Kernel->handle(object(Request)) in index.php line 53
Нужно переключить среду разработки на development в файле .env, что в корне поставьте
APP_ENV=local
APP_DEBUG=true
По дефолту в 5 версии этой страницы нет. Нужно ставить доп модуль.
Вот инструкция http://stackoverflow.com/questions/2994 … debug-page
Не в сети
оно у меня стоит я незнаю что делать в этом деле я чайник плис обьясните что куда
вот ошибка в консоли вот [PDOException]
SQLSTATE[HY000] [1049] Unknown database
а на сайте вотin Route.php line 643
at Route->sanitizeRequirement('adminModel', '') in Route.php line 531
at Route->addRequirements(array('adminModelId' => '[0-9]+', 'adminModel' => '', 'adminWildcard' => '.*')) in Route.php line 516
at Route->setRequirements(array('adminModelId' => '[0-9]+', 'adminModel' => '', 'adminWildcard' => '.*')) in Route.php line 91
at Route->__construct('admin/login', array(), array('adminModelId' => '[0-9]+', 'adminModel' => '', 'adminWildcard' => '.*'), array(), '') in Route.php line 241
at Route->compileRoute() in Route.php line 216
at Route->matches(object(Request), true) in RouteCollection.php line 222
at RouteCollection->Illuminate\Routing\{closure}('admin/login', object(Route))
at call_user_func(object(Closure), 'admin/login', object(Route)) in Arr.php line 158
at Arr::first(array('/' => object(Route), 'home' => object(Route), 'auth/register/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/login/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/logout/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/{_missing}' => object(Route), 'password/email/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/reset/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/{_missing}' => object(Route), 'admin/{adminModel}/async/{adminDisplayName?}' => object(Route), 'admin/assets/images/all' => object(Route), 'admin/login' => object(Route), 'admin/assets/lang' => object(Route), 'admin/logout' => object(Route), 'admin/{adminModel}' => object(Route), 'admin/{adminModel}/create' => object(Route), 'admin/{adminModel}/{adminModelId}/edit' => object(Route), 'admin/{adminWildcard}' => object(Route)), object(Closure), null) in helpers.php line 150
at array_first(array('/' => object(Route), 'home' => object(Route), 'auth/register/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/login/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/logout/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/{_missing}' => object(Route), 'password/email/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/reset/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/{_missing}' => object(Route), 'admin/{adminModel}/async/{adminDisplayName?}' => object(Route), 'admin/assets/images/all' => object(Route), 'admin/login' => object(Route), 'admin/assets/lang' => object(Route), 'admin/logout' => object(Route), 'admin/{adminModel}' => object(Route), 'admin/{adminModel}/create' => object(Route), 'admin/{adminModel}/{adminModelId}/edit' => object(Route), 'admin/{adminWildcard}' => object(Route)), object(Closure)) in RouteCollection.php line 223
at RouteCollection->check(array('/' => object(Route), 'home' => object(Route), 'auth/register/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/login/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/logout/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/{_missing}' => object(Route), 'password/email/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/reset/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/{_missing}' => object(Route), 'admin/{adminModel}/async/{adminDisplayName?}' => object(Route), 'admin/assets/images/all' => object(Route), 'admin/login' => object(Route), 'admin/assets/lang' => object(Route), 'admin/logout' => object(Route), 'admin/{adminModel}' => object(Route), 'admin/{adminModel}/create' => object(Route), 'admin/{adminModel}/{adminModelId}/edit' => object(Route), 'admin/{adminWildcard}' => object(Route)), object(Request)) in RouteCollection.php line 128
at RouteCollection->match(object(Request)) in Router.php line 729
at Router->findRoute(object(Request)) in Router.php line 652
at Router->dispatchToRoute(object(Request)) in Router.php line 628
at Router->dispatch(object(Request)) in Kernel.php line 214
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 141
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in VerifyCsrfToken.php line 43
at VerifyCsrfToken->handle(object(Request), object(Closure)) in VerifyCsrfToken.php line 17
at VerifyCsrfToken->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 55
at ShareErrorsFromSession->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in StartSession.php line 61
at StartSession->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 36
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 40
at EncryptCookies->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 42
at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 101
at Pipeline->then(object(Closure)) in Kernel.php line 115
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 84
at Kernel->handle(object(Request)) in index.php line 53
Alexsaab пишет:Нужно переключить среду разработки на development в файле .env, что в корне поставьте
APP_ENV=local
APP_DEBUG=trueПо дефолту в 5 версии этой страницы нет. Нужно ставить доп модуль.
Вот инструкция http://stackoverflow.com/questions/2994 … debug-page
Ничего не нужно ставить. В .env файле нужно прописать то, что написал Alexsaab, тогда вместо Whoops будет показана ошибка. Эту же ошибку можно посмотреть в логе, если debug отключен.
Изменено AlexeyMezenin (07.07.2016 19:40:00)
Не в сети
у меня поставлено на local и true а ошибка таже
Elelas пишет:Alexsaab пишет:Нужно переключить среду разработки на development в файле .env, что в корне поставьте
APP_ENV=local
APP_DEBUG=trueПо дефолту в 5 версии этой страницы нет. Нужно ставить доп модуль.
Вот инструкция http://stackoverflow.com/questions/2994 … debug-pageНичего не нужно ставить. В .env файле нужно прописать то, что написал Alexsaab, тогда вместо Whoops будет показана ошибка. Эту же ошибку можно посмотреть в логе, если debug отключен.
Во первых зависит от версии. Как минимум, нужно изменить перехватчик и отрисовщик исключений. Для версии 5.2, если я правильно понял, вот мануал https://laracasts.com/discuss/channels/ … laravel-52, для версии 5.1 https://mattstauffer.co/blog/bringing-w … -laravel-5. Если включить режим дебага, то по умолчанию будет выводиться просто стек вызовов.
Не в сети
вот ошибка в консоли вот [PDOException]
SQLSTATE[HY000] [1049] Unknown database
а на сайте вотin Route.php line 643
at Route->sanitizeRequirement('adminModel', '') in Route.php line 531
at Route->addRequirements(array('adminModelId' => '[0-9]+', 'adminModel' => '', 'adminWildcard' => '.*')) in Route.php line 516
at Route->setRequirements(array('adminModelId' => '[0-9]+', 'adminModel' => '', 'adminWildcard' => '.*')) in Route.php line 91
at Route->__construct('admin/login', array(), array('adminModelId' => '[0-9]+', 'adminModel' => '', 'adminWildcard' => '.*'), array(), '') in Route.php line 241
at Route->compileRoute() in Route.php line 216
at Route->matches(object(Request), true) in RouteCollection.php line 222
at RouteCollection->Illuminate\Routing\{closure}('admin/login', object(Route))
at call_user_func(object(Closure), 'admin/login', object(Route)) in Arr.php line 158
at Arr::first(array('/' => object(Route), 'home' => object(Route), 'auth/register/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/login/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/logout/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/{_missing}' => object(Route), 'password/email/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/reset/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/{_missing}' => object(Route), 'admin/{adminModel}/async/{adminDisplayName?}' => object(Route), 'admin/assets/images/all' => object(Route), 'admin/login' => object(Route), 'admin/assets/lang' => object(Route), 'admin/logout' => object(Route), 'admin/{adminModel}' => object(Route), 'admin/{adminModel}/create' => object(Route), 'admin/{adminModel}/{adminModelId}/edit' => object(Route), 'admin/{adminWildcard}' => object(Route)), object(Closure), null) in helpers.php line 150
at array_first(array('/' => object(Route), 'home' => object(Route), 'auth/register/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/login/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/logout/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/{_missing}' => object(Route), 'password/email/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/reset/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/{_missing}' => object(Route), 'admin/{adminModel}/async/{adminDisplayName?}' => object(Route), 'admin/assets/images/all' => object(Route), 'admin/login' => object(Route), 'admin/assets/lang' => object(Route), 'admin/logout' => object(Route), 'admin/{adminModel}' => object(Route), 'admin/{adminModel}/create' => object(Route), 'admin/{adminModel}/{adminModelId}/edit' => object(Route), 'admin/{adminWildcard}' => object(Route)), object(Closure)) in RouteCollection.php line 223
at RouteCollection->check(array('/' => object(Route), 'home' => object(Route), 'auth/register/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/login/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/logout/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/{_missing}' => object(Route), 'password/email/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/reset/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/{_missing}' => object(Route), 'admin/{adminModel}/async/{adminDisplayName?}' => object(Route), 'admin/assets/images/all' => object(Route), 'admin/login' => object(Route), 'admin/assets/lang' => object(Route), 'admin/logout' => object(Route), 'admin/{adminModel}' => object(Route), 'admin/{adminModel}/create' => object(Route), 'admin/{adminModel}/{adminModelId}/edit' => object(Route), 'admin/{adminWildcard}' => object(Route)), object(Request)) in RouteCollection.php line 128
at RouteCollection->match(object(Request)) in Router.php line 729
at Router->findRoute(object(Request)) in Router.php line 652
at Router->dispatchToRoute(object(Request)) in Router.php line 628
at Router->dispatch(object(Request)) in Kernel.php line 214
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 141
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in VerifyCsrfToken.php line 43
at VerifyCsrfToken->handle(object(Request), object(Closure)) in VerifyCsrfToken.php line 17
at VerifyCsrfToken->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 55
at ShareErrorsFromSession->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in StartSession.php line 61
at StartSession->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 36
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 40
at EncryptCookies->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 42
at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 101
at Pipeline->then(object(Closure)) in Kernel.php line 115
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 84
at Kernel->handle(object(Request)) in index.php line 53
Ошибка свзязана с базой. Попробуйте установить вручную соединение с теми параметрами, которые указаны в .env
Не в сети
вы можете дать мне свой вк или скайп можем поговорить плс и убрать ошибку буду рад если дадите
у меня в консоли выскакивает ошибка [PDOException]
SQLSTATE[HY000] [1049] Unknown database я сколько не менял на root не получается плис помогите и уменя стоит APP_ENV=local
APP_DEBUG=true зар спасибо
Он не находит базу в принципе, у вас вообще база данных создана и прописано имя в Env?
Не в сети