first commit
This commit is contained in:
34
routes/web.php
Normal file
34
routes/web.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Web Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is where you can register web routes for your application. These
|
||||
| routes are loaded by the RouteServiceProvider and all of them will
|
||||
| be assigned to the "web" middleware group. Make something great!
|
||||
|
|
||||
*/
|
||||
|
||||
Route::get('/', [App\Http\Controllers\Front\HomeController::class, 'index'])->name('home');
|
||||
|
||||
Route::get('/{country}', [App\Http\Controllers\Front\HomeController::class, 'country'])->name('home.country');
|
||||
|
||||
Auth::routes();
|
||||
|
||||
|
||||
Route::prefix('admin')->middleware('auth')->group(function () {
|
||||
|
||||
Route::get('/', [App\Http\Controllers\Admin\DashboardController::class, 'index'])->name('dashboard');
|
||||
|
||||
|
||||
Route::view('about', 'admin.about')->name('about');
|
||||
|
||||
Route::get('users', [\App\Http\Controllers\Admin\UserController::class, 'index'])->name('users.index');
|
||||
|
||||
Route::get('profile', [\App\Http\Controllers\Admin\ProfileController::class, 'show'])->name('profile.show');
|
||||
Route::put('profile', [\App\Http\Controllers\Admin\ProfileController::class, 'update'])->name('profile.update');
|
||||
});
|
||||
Reference in New Issue
Block a user