Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel use npm package

Run npm run watch , because keeps track of all changes in .js.

In app.js add

require('select2/dist/js/select2');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #npm #package
ADD COMMENT
Topic
Name
2+7 =