AlejandraTech / viver-cellers

Web project dedicated to marketing wines for the winemakers of Vilafranca del Penedés who are part of the Viver del Cellers project.
4 stars 0 forks source link

Issue 13: Adding Fortify to the Laravel Project #25

Closed AlejandraTech closed 7 months ago

AlejandraTech commented 7 months ago

Adding Fortify to the Laravel Project

Description:

The aim of this task is to integrate the Laravel Fortify package into the existing project. Fortify is an authentication and registration tool that makes implementing common authentication features in a Laravel application easier.

Tasks:

  1. Execute the command composer require laravel/fortify to install the dependency.
  2. Publish the necessary files to handle Fortify routes using the command php artisan vendor:publish --provider="Laravel\Fortify\FortifyServiceProvider".
  3. Register the Fortify ServiceProvider in the config/app.php file.
  4. Verify and, if necessary, add the columns required by Fortify to the users table through a migration.
  5. Configure Fortify features as needed in the config/fortify.php file.
  6. Disable Fortify views if they are not needed by setting 'views' => false in the config/fortify.php file.
  7. Modify the redirection in the RedirectIfAuthenticated.php middleware to send a JSON response instead of redirecting to the /home route when a user is already authenticated.

Official Laravel Fortify Documentation:

Configuring Laravel Fortify.

AlejandraTech commented 7 months ago

Task completed successfully!