Я новичок в структуре laravel. Я купил проект, и я его установил, но когда я пытаюсь войти на панель администратора localhost/admin/home, он перенаправляет меня на первую страницу. Почему это? Проблема в аутентификации?Не удается получить доступ к панели администратора Laravel
Номер модели: adminLTE.
Это routes.php:
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::group(['middleware' => ['web']], function() {
Route::auth();
Route::get('/', function() {
// $user = Auth::user();
// if($user->id == 2){
return view('welcome');
/* }else{
echo "Site En cours de mise a jours .. Veuillez patienter quelques minutes";
die();
}*/
});
Route::post('/post_login', '[email protected]_login');
Route::get('/admin/home', '[email protected]');
Route::get('/contact', '[email protected]');
});
Route::group(['middleware' => 'web'], function() {
Route::get('/load_coup/{code}', '[email protected]_coup');
Route::get('/get_coup_div/{code}', '[email protected]_coup_div');
Route::get('/reset_coupon_div', '[email protected]_coupon_div');
Route::get('/validate_coup/{price}/{type}', '[email protected]_coup');
Route::get('/back', '[email protected]');
Route::get('/save/{price}', '[email protected]');
Route::get('/get_solde', '[email protected]_solde');
Route::get('/bet_list', '[email protected]_list');
Route::get('/bet_list/{code}', '[email protected]_details');
Route::get('/coupon/{id}', '[email protected]_coupon');
Route::get('/transaction/', '[email protected]_transaction');
Route::post('/transaction/', '[email protected]_transaction');
Route::get('/transaction_list/', '[email protected]_list');
Route::get('/profile/', '[email protected]');
Route::post('/profile/', '[email protected]_profile');
});
Route::group(['prefix' => 'admin', 'middleware' => ['web']], function() {
//Route::auth();
Route::get('/users', '[email protected]');
Route::get('/users/{id}', '[email protected]_user');
Route::post('/update_user/', '[email protected]_user');
Route::post('/add_transaction/', '[email protected]_transaction');
Route::get('/match', '[email protected]');
//Route::post('/match', '[email protected]');
Route::get('/coupon', '[email protected]');
Route::get('/coupons/{id}', '[email protected]_coupon');
});
Снимки экрана были удалены - если вы хотите включить код, то добавьте его в виде отформатированного текста (используйте кнопку на панели инструментов для добавления кода или см. [Справочную документацию об [форматировании блоков кода] (http: // stackoverflow. ком/помощь/форматирование # помощь, после тела)). –