Answer the question
In order to leave comments, you need to log in
Why is the Vue component not rendered after authentication?
Good afternoon.
Essence of the question: there was a view where I connected a VueJS component to work with api.
Decided to add registration.
After entering the site, the template does not display the component that I need, although the view itself is pulled up.
What did I do wrong?)
The code of this view:
@extends('layouts.app')
@section('content')
<div id="app">
<item-component></item-component>
</div>
<script src="./js/app.js"></script>
@endsection
Answer the question
In order to leave comments, you need to log in
Figured it out
php artisan ui vue --auth overwrote the app.js file where the components are connected, removing my components.
I just specified the required component again and it worked.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question