Recentlly i created a app on laravel 5.4, and than i deployed has i normally do, the only difference is that i made a app with version 5.4. But something get wrong, after i login and got redirect to the admin dashboard im getting a error of "Error of too many connections", i cant figure out what i made wrong? Is completelly normal has i always do.
Note: this error is only hapenning online, in my localhost machine works fine.
Here is my routes.php
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
//Route::get('/', 'PagesController@home');
Route::get('/', function () {
return view('welcome');
});
Route::get('admin/', 'Auth\LoginController@showLoginForm');
Route::post('admin/', 'Auth\LoginController@login');
Route::post('admin/logout', 'Auth\LoginController@logout');
/************** ADMIN AREA ********************/
Route::group(['middleware' => ['auth', 'admin']], function() {
Route::get('admin/dashboard', 'PagesController@dashboard');
//Surveys
Route::get('admin/surveys/', 'SurveyController@index');
Route::get('admin/surveys/create', 'SurveyController@create');
Route::post('admin/surveys', 'SurveyController@store');
Route::get('admin/surveys/{id}/edit', 'SurveyController@edit');
Route::put('admin/surveys/{id}', 'SurveyController@update');
Route::delete('admin/surveys/{id}', 'SurveyController@destroy');
Route::get('admin/surveys/{id}/{email}/show', 'SurveyController@show');
Route::get('admin/surveys/{id}/results', 'SurveyController@results');
//Questions
Route::get('admin/questions/', 'QuestionController@index');
Route::get('admin/questions/create', 'QuestionController@create');
Route::post('admin/questions', 'QuestionController@store');
Route::get('admin/questions/{id}/edit', 'QuestionController@edit');
Route::put('admin/questions/{id}', 'QuestionController@update');
Route::delete('admin/questions/{id}', 'QuestionController@destroy');
//Answers
Route::post('admin/answers', 'AnswerController@store');
Route::get('admin/answers', 'AnswerController@index');
//Statistics
Route::get('admin/statistics','StatisticController@index');
//Questions Options
Route::get('admin/optionsquestions/', 'QuestionOptionController@index');
Route::get('admin/optionsquestions/create', 'QuestionOptionController@create');
Route::post('admin/optionsquestions', 'QuestionOptionController@store');
Route::get('admin/optionsquestions/{id}/edit', 'QuestionOptionController@edit');
Route::put('admin/optionsquestions/{id}', 'QuestionOptionController@update');
Route::delete('admin/optionsquestions/{id}', 'QuestionOptionController@destroy');
// Settings
Route::get('admin/settings', 'SettingController@edit');
Route::put('admin/settings/update', 'SettingController@update');
});
//Survey Online
Route::get('surveys/{id}/show', 'SurveyController@showPublic');
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2lHrTzx
via IFTTT
Aucun commentaire:
Enregistrer un commentaire