init commit
This commit is contained in:
commit
c9d982669a
461 changed files with 30317 additions and 0 deletions
27
routes/settings.php
Normal file
27
routes/settings.php
Normal file
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
|
||||
use App\Http\Controllers\Settings\PasswordController;
|
||||
use App\Http\Controllers\Settings\ProfileController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Inertia\Inertia;
|
||||
|
||||
Route::middleware('auth')->group(function () {
|
||||
Route::redirect('settings', '/settings/profile');
|
||||
|
||||
Route::get('settings/profile', [ProfileController::class, 'edit'])->name('profile.edit');
|
||||
Route::patch('settings/profile', [ProfileController::class, 'update'])->name('profile.update');
|
||||
Route::delete('settings/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');
|
||||
|
||||
Route::get('settings/password', [PasswordController::class, 'edit'])->name('password.edit');
|
||||
Route::put('settings/password', [PasswordController::class, 'update'])->name('password.update');
|
||||
|
||||
Route::get('settings/appearance', function () {
|
||||
return Inertia::render('settings/Appearance');
|
||||
})->name('appearance');
|
||||
|
||||
Route::get('settings/permissions', function () {
|
||||
return Inertia::render('settings/Permissions');
|
||||
})->name('permissions');
|
||||
|
||||
Route::get('settings/roles', [ProfileController::class, 'show'])->name('roles');
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue