1use App\Http\Controllers\PagesController;
2
3// Create route for About Page
4Route::get('about-us', [PagesController::class, 'aboutPage'])->name('pages.about');
1Route::prefix('admin')->group(function () {
2 Route::get('/users', function () {
3 // Matches The "/admin/users" URL
4 });
5});
1Route::get(
2 '/user/profile',
3 [UserProfileController::class, 'show']
4)->name('profile');
1Route::get('user/{id}/profile', function ($id) {
2 //
3})->name('profile');
4
5$url = route('profile', ['id' => 1, 'photos' => 'yes']);
6
7// /user/1/profile?photos=yes
1 Route::group(['namespace' => 'App\Http\Controllers', 'prefix' => 'admin',
2 'as' => 'admin.', 'middleware' => ['auth:sanctum', 'verified']], function()
3{
4 Route::get('/dashboard', ['DashboardController', 'index']);
5});
1Route::get('/novanoticia', 'HomeController@getNovaNoticia')->name('route_name');
2Route::get('/novanoticia', ['as' => 'route_name', 'uses' => 'HomeController@getNovaNoticia']);
3