Skip to content

Commit 015c3c7

Browse files
committed
Merge branch 'main' into demo
2 parents 6cf6124 + 50d1ab5 commit 015c3c7

File tree

8 files changed

+9
-15
lines changed

8 files changed

+9
-15
lines changed

app/Http/Controllers/Auth/AuthenticatedSessionController.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use App\Http\Controllers\Controller;
88
use App\Http\Requests\Auth\LoginRequest;
99
use App\Models\CartItem;
10-
use App\Providers\RouteServiceProvider;
1110
use Illuminate\Http\Request;
1211
use Illuminate\Support\Facades\Auth;
1312

@@ -37,7 +36,7 @@ public function store(LoginRequest $request)
3736

3837
Cart::moveCartItemsIntoDb();
3938

40-
return redirect()->intended(RouteServiceProvider::HOME);
39+
return redirect()->intended(route('home'));
4140
}
4241

4342
/**

app/Http/Controllers/Auth/ConfirmablePasswordController.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace App\Http\Controllers\Auth;
44

55
use App\Http\Controllers\Controller;
6-
use App\Providers\RouteServiceProvider;
76
use Illuminate\Http\Request;
87
use Illuminate\Support\Facades\Auth;
98
use Illuminate\Validation\ValidationException;
@@ -39,6 +38,6 @@ public function store(Request $request)
3938

4039
$request->session()->put('auth.password_confirmed_at', time());
4140

42-
return redirect()->intended(RouteServiceProvider::HOME);
41+
return redirect()->intended(route('home'));
4342
}
4443
}

app/Http/Controllers/Auth/EmailVerificationNotificationController.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace App\Http\Controllers\Auth;
44

55
use App\Http\Controllers\Controller;
6-
use App\Providers\RouteServiceProvider;
76
use Illuminate\Http\Request;
87

98
class EmailVerificationNotificationController extends Controller
@@ -17,7 +16,7 @@ class EmailVerificationNotificationController extends Controller
1716
public function store(Request $request)
1817
{
1918
if ($request->user()->hasVerifiedEmail()) {
20-
return redirect()->intended(RouteServiceProvider::HOME);
19+
return redirect()->intended(route('home'));
2120
}
2221

2322
$request->user()->sendEmailVerificationNotification();

app/Http/Controllers/Auth/EmailVerificationPromptController.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace App\Http\Controllers\Auth;
44

55
use App\Http\Controllers\Controller;
6-
use App\Providers\RouteServiceProvider;
76
use Illuminate\Http\Request;
87

98
class EmailVerificationPromptController extends Controller
@@ -17,7 +16,7 @@ class EmailVerificationPromptController extends Controller
1716
public function __invoke(Request $request)
1817
{
1918
return $request->user()->hasVerifiedEmail()
20-
? redirect()->intended(RouteServiceProvider::HOME)
19+
? redirect()->intended(route('home'))
2120
: view('auth.verify-email');
2221
}
2322
}

app/Http/Controllers/Auth/RegisteredUserController.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use App\Http\Controllers\Controller;
77
use App\Models\Customer;
88
use App\Models\User;
9-
use App\Providers\RouteServiceProvider;
109
use Illuminate\Auth\Events\Registered;
1110
use Illuminate\Http\Request;
1211
use Illuminate\Support\Facades\Auth;
@@ -71,6 +70,6 @@ public function store(Request $request)
7170

7271
Cart::moveCartItemsIntoDb();
7372

74-
return redirect(RouteServiceProvider::HOME);
73+
return redirect(route('home'));
7574
}
7675
}

app/Http/Controllers/Auth/VerifyEmailController.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use App\Enums\CustomerStatus;
66
use App\Http\Controllers\Controller;
7-
use App\Providers\RouteServiceProvider;
87
use Illuminate\Auth\Events\Verified;
98
use Illuminate\Foundation\Auth\EmailVerificationRequest;
109

@@ -19,7 +18,7 @@ class VerifyEmailController extends Controller
1918
public function __invoke(EmailVerificationRequest $request)
2019
{
2120
if ($request->user()->hasVerifiedEmail()) {
22-
return redirect()->intended(RouteServiceProvider::HOME.'?verified=1');
21+
return redirect()->intended(route('home').'?verified=1');
2322
}
2423

2524
if ($request->user()->markEmailAsVerified()) {
@@ -29,6 +28,6 @@ public function __invoke(EmailVerificationRequest $request)
2928
event(new Verified($request->user()));
3029
}
3130

32-
return redirect()->intended(RouteServiceProvider::HOME.'?verified=1');
31+
return redirect()->intended(route('home').'?verified=1');
3332
}
3433
}

routes/api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
|--------------------------------------------------------------------------
1616
|
1717
| Here is where you can register API routes for your application. These
18-
| routes are loaded by the RouteServiceProvider within a group which
18+
| routes are loaded within a group which
1919
| is assigned the "api" middleware group. Enjoy building your API!
2020
|
2121
*/

routes/web.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
|--------------------------------------------------------------------------
1414
|
1515
| Here is where you can register web routes for your application. These
16-
| routes are loaded by the RouteServiceProvider within a group which
16+
| routes are loaded within a group which
1717
| contains the "web" middleware group. Now create something great!
1818
|
1919
*/

0 commit comments

Comments
 (0)