[Vuejs]-Laravel 6 user auth page not working properly

0👍

The command to implement Auth is as follows:

composer require laravel/ui
php artisan ui vue --auth

If your Login and Register page only shows plain HTML. And CSS is not loading properly then run this two command:

npm install
npm run dev

OR

Simply you’ve to follow this two-step.

composer require laravel/ui
php artisan ui:auth

0👍

This will solve your problem for sure!

Check if your npm install shows any deprecation error,
if shows then go to nodejs official site https://nodejs.org/en/ and download and install latest one in your system.

Then in your terminal run:

    npm install  
    npm run dev 

That’s it.

In your laravel public folder, css and js should have shown after that npm run dev command.
Now your login and register page should be nice looking as expected.

👤Yeshi

-1👍

Do one thing,

1) Create app.css and put into project_name/public/css/

2) Create app.js and put into project_name/public/js/

I believe it will work.

If not, make sure you have used these commands before.

npm install
npm run dev

Thanks.

Leave a comment