Download the PHP package mortogo321/laravel-quill without Composer
On this page you can find all versions of the php package mortogo321/laravel-quill. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mortogo321/laravel-quill
More information about mortogo321/laravel-quill
Files in mortogo321/laravel-quill
Package laravel-quill
Short Description Laravel package for Quill WYSIWYG editor with full support for Quill 2.x
License MIT
Homepage https://github.com/mortogo321/laravel-quill
Informations about the package laravel-quill
Laravel Quill
A Laravel package for seamless integration with Quill 2.x WYSIWYG editor.
Features
- Full support for Quill 2.x
- Blade components for easy integration
- Image upload handling with storage support
- Delta format conversion utilities
- Content sanitization
- Validation rules
- Configurable toolbar presets
- Dark mode support
- CDN or local assets
Requirements
- PHP 8.2+
- Laravel 10.x, 11.x, or 12.x
Installation
Install the package via Composer:
Publish the assets and configuration:
Quick Start
1. Include Assets
Add the styles and scripts to your layout:
2. Use the Editor Component
3. Display Content
Configuration
The configuration file is located at config/quill.php. Key options include:
Theme
CDN Settings
Toolbar Presets
Three built-in presets: minimal, basic, full
Custom Toolbar
Image Uploads
Configure upload settings in config/quill.php:
Editor Component
Available Props
| Prop | Type | Default | Description |
|---|---|---|---|
name |
string | required | Form input name |
id |
string | auto | Editor element ID |
value |
string | null | Initial content (Delta JSON or HTML) |
placeholder |
string | config | Placeholder text |
theme |
string | 'snow' | Quill theme ('snow' or 'bubble') |
toolbar |
string/array | config | Toolbar preset or custom config |
read-only |
bool | false | Read-only mode |
height |
string | '300px' | Editor height |
required |
bool | false | HTML5 required attribute |
upload-url |
string | auto | Custom upload endpoint |
formats |
array | [] | Allowed formats |
modules |
array | [] | Additional Quill modules |
debug |
bool | false | Enable debug mode |
Examples
Basic Editor:
With Initial Content:
Read-Only:
Custom Height:
Bubble Theme:
Viewer Component
Available Props
| Prop | Type | Default | Description |
|---|---|---|---|
content |
string | null | Content (Delta JSON or HTML) |
delta |
array | null | Delta object directly |
sanitize |
bool | true | Sanitize HTML output |
class |
string | null | Additional CSS classes |
Examples
Display Delta Content:
Display with Custom Class:
Without Sanitization:
Validation Rules
QuillContent
Validate Quill content with length constraints:
QuillDelta
Validate Delta structure and allowed formats:
Facade Methods
The Quill facade provides utility methods:
JavaScript API
The LaravelQuill object is available globally:
Events
Customization
Custom Upload Handler
Override the upload endpoint:
Custom Styling
Publish the CSS and modify public/vendor/quill/css/laravel-quill.css, or use CSS variables:
Environment Variables
Security
The package includes built-in content sanitization. Configure allowed tags and attributes in config/quill.php:
License
MIT License. See LICENSE for more information.