wiznox
1 month ago
329
6
Laravel

Route [admin] not defined.

Posted 1 month ago by wiznox

Route::group(["namespace"=>"Admin",'middleware' => 'auth','prefix' => 'admin'], function () { Route::get('/home', [ 'as' => 'admindashboard', 'uses' => '[email protected]']); Route::get('/user', '[email protected]'); Route::post('/logout','[email protected]'); Route::post('/profile','[email protected]'); Route::delete('/delete','[email protected]'); Route::get('/edit/{id}','[email protected]'); Route::post('/updateUser','[email protected]'); Route::get('/addUser','[email protected]'); Route::post('/doAddUser','[email protected]'); });

Route::group(["namespace"=>"Admin"],function () { Route::post('/admin/login',[ 'as' => 'postLogin', 'uses' => '[email protected]']); Route::get('/admin', [ 'as' => 'adminlogin', 'uses' => '[email protected]']); });

Please sign in or create an account to participate in this conversation.