•   The component "controllers" must go in Modules/Theme. (e.g CounterItem)
  •   CounterItem.php go in Modules/Theme/View/Components
  •   counter-item.blade.php file go in Modules/Theme/Resources/views/components/

The .js and .css are usually auto pushed in the app.js and app.css files doing this:
  @push('scripts')  <script>      ...  </script>  @endpush      //or  @push('styles')    <style>    ...    </style>  @endpush // or you can also add a file doing this:{{ Theme::add('lu::dist/css/file.css') }}{{ Theme::add('lu::dist/js/file.js') }}


Published on • min read
Tags:

More Articles