refactor: auto refactor via rector
This commit is contained in:
@@ -9,14 +9,14 @@ use App\Livewire\Auth\ResetPassword;
|
||||
use App\Livewire\Auth\VerifyEmail;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::middleware('guest')->group(function () {
|
||||
Route::middleware('guest')->group(function (): void {
|
||||
Route::get('login', Login::class)->name('login');
|
||||
Route::get('register', Register::class)->name('register');
|
||||
Route::get('forgot-password', ForgotPassword::class)->name('password.request');
|
||||
Route::get('reset-password/{token}', ResetPassword::class)->name('password.reset');
|
||||
});
|
||||
|
||||
Route::middleware('auth')->group(function () {
|
||||
Route::middleware('auth')->group(function (): void {
|
||||
Route::get('verify-email', VerifyEmail::class)
|
||||
->name('verification.notice');
|
||||
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
use Illuminate\Foundation\Inspiring;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
|
||||
Artisan::command('inspire', function () {
|
||||
Artisan::command('inspire', function (): void {
|
||||
$this->comment(Inspiring::quote());
|
||||
})->purpose('Display an inspiring quote');
|
||||
|
||||
@@ -7,15 +7,13 @@ use App\Livewire\Settings\TwoFactor;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Laravel\Fortify\Features;
|
||||
|
||||
Route::get('/', function () {
|
||||
return view('welcome');
|
||||
})->name('home');
|
||||
Route::get('/', fn(): \Illuminate\Contracts\View\View|\Illuminate\Contracts\View\Factory => view('welcome'))->name('home');
|
||||
|
||||
Route::view('dashboard', 'dashboard')
|
||||
->middleware(['auth', 'verified'])
|
||||
->name('dashboard');
|
||||
|
||||
Route::middleware(['auth'])->group(function () {
|
||||
Route::middleware(['auth'])->group(function (): void {
|
||||
Route::redirect('settings', 'settings/profile');
|
||||
|
||||
Route::get('settings/profile', Profile::class)->name('settings.profile');
|
||||
|
||||
Reference in New Issue
Block a user