JoaoHamerski's avatar

How to integrate a library in Laravel 5.6?

I am trying to integrate Quill Library (https://quilljs.com/) in Laravel, but how do i do it? I already run this command: "npm install quill" and "npm run dev", but still not working on my views, what is the next steps?

This library contains css and js files.

0 likes
3 replies
rin4ik's avatar

Inside app.js import them

import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'

hard refresh the browser (ctrl+f5) maybe it can help

click's avatar

npm install {packagename} only download the files for you. It does not include the package in your actual application. I think you missed that step.

I didn't use this package before but try adding

window.quill = require('quill');

to your bootstrap.js file

Please or to participate in this conversation.