I´m struglling for hours on this, i just can´t seem to put the bootstrap-select working inside a livewire component, so i´ll try to be specific on my scenario and hopping someone could help me. I have a laravel project using this adminlte, so my code is:
web.php
Route::livewire('/new','new')->layout('adminlte::page');
Then, i have my page A where i´m including the livewire component which by the way it´s a bootstrap modal.
@livewire('new')
Inside my app.scss i have:(i installed the bootstrap select with npm)
// Bootstrap
@import '~bootstrap/scss/bootstrap';
@import '~bootstrap-select/sass/bootstrap-select.scss';
And inside my app.js i have:
require('./bootstrap');
require('../../node_modules/bootstrap-select/dist/js/bootstrap-select');
After this, i went to my livewire blade file and tried to use the example 'Select/deselect all options:
<select class="selectpicker" multiple data-actions-box="true">
<option>Mustard</option>
<option>Ketchup</option>
<option>Relish</option>
</select>
but nothing happens, so i discovered this link and used the solution that is given but the result is the same.
Could anyone point me in the right direction? i just don´t know what am i missing, i also tried other links but if i put everything here it´s gonna be a long question.
Thanks for you time