feat/add-laravel (#1)
adding laravel 12 Co-authored-by: jon brookes <marshyon@gmail.com> Reviewed-on: https://codeberg.org/headshed/share-lt/pulls/1
This commit is contained in:
parent
6a97cad9f8
commit
10baf3315e
125 changed files with 18709 additions and 0 deletions
35
routes/web.php
Normal file
35
routes/web.php
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
|
||||
use App\Livewire\Settings\Appearance;
|
||||
use App\Livewire\Settings\Password;
|
||||
use App\Livewire\Settings\Profile;
|
||||
use App\Livewire\Settings\TwoFactor;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Laravel\Fortify\Features;
|
||||
|
||||
Route::get('/', function () {
|
||||
return view('welcome');
|
||||
})->name('home');
|
||||
|
||||
Route::view('dashboard', 'dashboard')
|
||||
->middleware(['auth', 'verified'])
|
||||
->name('dashboard');
|
||||
|
||||
Route::middleware(['auth'])->group(function () {
|
||||
Route::redirect('settings', 'settings/profile');
|
||||
|
||||
Route::get('settings/profile', Profile::class)->name('profile.edit');
|
||||
Route::get('settings/password', Password::class)->name('user-password.edit');
|
||||
Route::get('settings/appearance', Appearance::class)->name('appearance.edit');
|
||||
|
||||
Route::get('settings/two-factor', TwoFactor::class)
|
||||
->middleware(
|
||||
when(
|
||||
Features::canManageTwoFactorAuthentication()
|
||||
&& Features::optionEnabled(Features::twoFactorAuthentication(), 'confirmPassword'),
|
||||
['password.confirm'],
|
||||
[],
|
||||
),
|
||||
)
|
||||
->name('two-factor.show');
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue