i have a version of laravel 8x jetstream with fortify on a test server and a production server.
test: prj_l8xtest.com production: prj_l8xprod.com
I wanted to activate or deactivate some pages made available by fortify, they can be activated or deactivated from here -> prj_l8xlocal/config/fortify.php:
.
.
.
.
'features' => [
Features::registration(),
Features::resetPasswords(),
Features::emailVerification(),
Features::updateProfileInformation(),
Features::updatePasswords(),
Features::twoFactorAuthentication([
'confirmPassword' => true,
]),
],
I would like to activate or deactivate some of these pages depending on test or production.
i think i could do it all with an if(){} which checks url in question (production or test), but i would have no idea how to take url. Or are there better solutions than my proposal?