Laravel 5.4 Auth - OK to implement on existing project?

Hi all!

I'm looking to activate the standard Laravel Authentication module on an existing site (docs: https://laravel.com/docs/5.4/authentication) - but the docs just keep mentioning 'on a fresh installation', without talking about why.

Is there a problem running php artisan make:auth on an existing project please?

Many thanks Matt

mattharwood
mattharwood
  • 2 weeks ago

@mattharwood I see no reason why it wouldn't be possible to add this to an existing site but obviously I would recommend doing this is a development environment first.

php artisan make:auth will create the necessary routes, controllers, views and migration files and then running php artisan migrate will add the tables to your database.