1

After the laravel version 6.0 release, when i install the fresh laravel application it does not include the vue.js files assets/components, App.vue. i don't know how to fix it. I wanna develop a project in the laravel and vue.

require('./bootstrap');

this is app.js file and it include only this line of code.

2 Answers 2

6

Yes, it does not include because that was moved out of the core in a separate package called laravel/ui you can install the package using composer and then use the prebuilt components for Authentication for example and whatever else it provides.

And here is the Documentation for it.

Sign up to request clarification or add additional context in comments.

6 Comments

@Annuktk you are welcome :) Please accept the answer.
[Composer\Downloader\TransportException] The "repo.packagist.org/p/laravel/… 5cd629536737bbda8ed1119e36.json" file could not be downloaded: php_network_getaddres ses: getaddrinfo failed: No such host is known. failed to open stream: php_network_getaddresses: getaddrinfo failed: No such host is known.
it give error when "i run composer require laravel/ui" this in the root directory of application
Do you maybe have any network issues? Because I just ran it on my machine and everything worked as intended.
i don't think so, i have an internet connection that works good.
|
1

As @nakov said, Vue is now moved to larvel/ui package. To install it , you have to run composer require laravel/ui command in your project directory. Then run php artisan ui vue command then run npm install && npm run dev . Now you can see that there is vue component in your app.js .

Comments

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.