<?phpuseApp\Http\Controllers\BannerController;useApp\Http\Controllers\HomeController;useIlluminate\Support\Facades\Auth;useIlluminate\Support\Facades\Route;/*|--------------------------------------------------------------------------| 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::group(['middleware'=>'get.menu'],function () {Route::get('/',function () {returnview('dashboard.homepage'); });Auth::routes();Route::get('/home', [HomeController::class,'index'])->name('home');Route::group(['middleware'=> ['role:admin']],function () {Route::get('/test-role-admin',function () {echo"Hello Admin"; }); });});