Search code examples
laravelnpmvuejs2laravel-passportlaravel-5.7

Laravel Passport Vue components do not be published in the correct path


According to Frontend Quickstart official documentation of . I run the command:

php artisan vendor:publish --tag=passport-components

I have no any error messages, it returns:

Copied Directory

[/vendor/laravel/passport/resources/assets/js/components] To [/resources/assets/js/components/passport]

Publishing complete.

So, it does not copied to resources/js/components like the documentation stated:

The published components will be placed in your resources/js/components directory.

I don't know why does it published in different path other than specified in the documentation? and how could I solve this issue?


Solution

  • In 5.7 the resources/assets/js directory became resources/js which has been causing issues.

    There is an open issue about this on the passport github page: https://github.com/laravel/passport/issues/829