Re-codeUI's avatar

add button

hello, I created a file with the name toolbarLatext.js which is in the resources/js folder then I registered it in Vite

export default defineConfig({
    plugins: [
        laravel({
            input: [
                'resources/sass/app.scss',
                'resources/sass/ui.scss',
                'resources/js/app.js',
                'resources/js/toolbarLatext.js',
            ],
            refresh: true,
        }),
    ],
    
});

inside app.blade.php I call it like this

@vite(['resources/sass/ui.scss', 'resources/js/app.js','resources/js/toolbarLatext.js'])

toolbarLatext.js is connected to the create.blade.php file through this

<div id="toolbar" class="mt-3 toolbar-container">
      <!-- toolbar here -->
</div>

toolbarLatext.js

The question is why the toolbar doesn't appear in the view

0 likes
0 replies

Please or to participate in this conversation.