Back

Laravel 5.4 Auth - OK to implement on existing project?


mattharwood posted 2 months ago

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

vcmattp replied 2 months 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.


Sign in to participate in this thread!



We'd like to thank these amazing companies for supporting us