#4-public-user-profile
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\AuthorController;
|
||||
use App\Http\Controllers\ProfileController;
|
||||
use App\Http\Controllers\UserController;
|
||||
use App\Http\Controllers\RoleController;
|
||||
use App\Http\Controllers\UserController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::get('/', function () {
|
||||
@@ -13,6 +14,8 @@ Route::get('/dashboard', function () {
|
||||
return view('dashboard');
|
||||
})->middleware(['auth', 'verified'])->name('dashboard');
|
||||
|
||||
Route::get('/author/{user:username}', [AuthorController::class, 'show'])->name('author.show');
|
||||
|
||||
Route::middleware('auth')->group(function () {
|
||||
Route::get('/user', [UserController::class, 'index'])->name('user.index');
|
||||
Route::get('/user/{user}/edit', [UserController::class, 'edit'])->name('user.edit');
|
||||
|
||||
Reference in New Issue
Block a user