[Vuejs]-Problem in Laravel to show vueJs component

1๐Ÿ‘

โœ…

As @ashutosh has mentioned, you need to import that component to register it:

 <template>
  <div>
    <phoneSearch />
  </div>
</template>

<script>
    import phoneSearch from './your-directory/your-component.vue';

    export default {
        name: "add-passenger",
        components: {  phoneSearch },
    }
</script>

<style scoped>

</style>

1๐Ÿ‘

You need to import the child component locally inside the parent component to display it

 <template>
    <div>
       <your-component></your-component>
    </div>
 </template>

 <script>
      import yourComponent from './components/child-component.vue';

      export default {
                 components: {  yourComponent },
               }
 </script>

Leave a comment