File tree Expand file tree Collapse file tree 8 files changed +9
-15
lines changed
app/Http/Controllers/Auth Expand file tree Collapse file tree 8 files changed +9
-15
lines changed Original file line number Diff line number Diff line change 77use App \Http \Controllers \Controller ;
88use App \Http \Requests \Auth \LoginRequest ;
99use App \Models \CartItem ;
10- use App \Providers \RouteServiceProvider ;
1110use Illuminate \Http \Request ;
1211use 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 /**
Original file line number Diff line number Diff line change 33namespace App \Http \Controllers \Auth ;
44
55use App \Http \Controllers \Controller ;
6- use App \Providers \RouteServiceProvider ;
76use Illuminate \Http \Request ;
87use Illuminate \Support \Facades \Auth ;
98use 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}
Original file line number Diff line number Diff line change 33namespace App \Http \Controllers \Auth ;
44
55use App \Http \Controllers \Controller ;
6- use App \Providers \RouteServiceProvider ;
76use Illuminate \Http \Request ;
87
98class 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 ();
Original file line number Diff line number Diff line change 33namespace App \Http \Controllers \Auth ;
44
55use App \Http \Controllers \Controller ;
6- use App \Providers \RouteServiceProvider ;
76use Illuminate \Http \Request ;
87
98class 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}
Original file line number Diff line number Diff line change 66use App \Http \Controllers \Controller ;
77use App \Models \Customer ;
88use App \Models \User ;
9- use App \Providers \RouteServiceProvider ;
109use Illuminate \Auth \Events \Registered ;
1110use Illuminate \Http \Request ;
1211use 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}
Original file line number Diff line number Diff line change 44
55use App \Enums \CustomerStatus ;
66use App \Http \Controllers \Controller ;
7- use App \Providers \RouteServiceProvider ;
87use Illuminate \Auth \Events \Verified ;
98use 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}
Original file line number Diff line number Diff line change 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*/
Original file line number Diff line number Diff line change 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*/
You can’t perform that action at this time.
0 commit comments