File tree Expand file tree Collapse file tree 4 files changed +4
-3
lines changed
Expand file tree Collapse file tree 4 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -50,3 +50,4 @@ MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
5050
5151SANCTUM_STATEFUL_DOMAINS = localhost:8080
5252SESSION_DOMAIN = localhost
53+ SPA_URL = http://localhost:8080
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class Authenticate extends Middleware
1515 protected function redirectTo ($ request )
1616 {
1717 if (! $ request ->expectsJson ()) {
18- return url (' http://localhost:8080 /login ' );
18+ return url (env ( ' SPA_URL ' ) . ' /login ' );
1919 }
2020 }
2121}
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public function boot()
2727 $ this ->registerPolicies ();
2828
2929 ResetPassword::createUrlUsing (function ($ user , string $ token ) {
30- return ' http://localhost:8080/ reset-password?token= ' .$ token ;
30+ return env ( ' SPA_URL ' ) . ' / reset-password?token= ' . $ token ;
3131 });
3232 }
3333}
Original file line number Diff line number Diff line change 6161 |
6262 */
6363
64- 'home ' => ' http://localhost:8080 /dashboard ' ,
64+ 'home ' => env ( ' SPA_URL ' ) . ' /dashboard ' ,
6565
6666 /*
6767 |--------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments