Warm tip: This article is reproduced from serverfault.com, please click

No vue component on fresh installed laravel

发布于 2019-09-19 07:16:03

I have install a fresh laravel on my machine. while reading tutorials about laravel vue, they already have a vue component named "ExampleComponent.vue" on their machine under

resources/assets/components

but when i look on resources folder i dont have the components folder but when i see the package.json there are vue installed on it as well as vue-router.

I do also have ExampleComponent.vue but in the vendor folder. Am i installed laravel or vue on a wrong way?

Questioner
Mark Ciso
Viewed
0
matticustard 2019-09-19 15:41:49

With Laravel 6, JavaScript & CSS scaffolding was moved to a separate package.
https://laravel.com/docs/master/frontend

composer require laravel/ui --dev

See the linked resource for provisioning specific items.