0

I've just installed Laravel 6.0.2. I then created authentication using the following command.

composer require laravel/ui
php artisan ui:auth

Now, I run the login page and it displays like the following.

enter image description here

Now I'm setting up the Layouts.php files.

<link href="{{ asset('css/app.css') }}" rel="stylesheet">
<script src="{{ asset('js/app.js') }}" defer></script>

I tried this one as well.

<link href="{{ asset('public/css/app.css') }}" rel="stylesheet">
<script src="{{ asset('public/js/app.js') }}" defer></script>

Before Laravel 6 the folder of CSS and JS exists in public folder, but now I can't find that folder. Can anyone tell me {{ asset('css/app.css') }} what is the location of this asset in Laravel 6?

1 Answer 1

6

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
Sign up to request clarification or add additional context in comments.

1 Comment

Hi, I appreciate your answer Thanks, I read the document about laravel mix laravel.com/docs/master/mix#installation over here, is there any way to without installing node modules?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.