Download the PHP package novius/laravel-nova-visual-composer without Composer
On this page you can find all versions of the php package novius/laravel-nova-visual-composer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-nova-visual-composer
Visual Composer for Laravel Nova
Requirements
- PHP >= 7.4
- Laravel Framework >= 8.
- Nova >= 2.0
- Imagick PHP extension or GD Library (for Intervention Image)
NOTE: These instructions are for Laravel >= 8. If you are using prior version, please see the previous version's docs.
Installation
Next, configure Intervention Image package :
Intervention Image configuration instructions
Configuration
Some options that you can override are available.
JS Configuration
Some options (like wysiwyg config) are configurable from JS config file.
You can override it with :
Purge TMP uploaded files
In your app/Console/Kernel.php file, you should register a daily job to purge any stale files :
By default tmp file is stale considered after 24h. You can override this value in configuration file with seconds_before_purge_tmp_files
key.
Usage
Step 1
Create a long text column on your model's table.
Configure your model by adding object
to the desired column.
Step 2
Add the field to your Nova resource.
Step 3
Display in your blade template.
Create new row templates
Step 1
You have to publish lang and view files.
Step 2
Create your own Row Template and link it into configuration file.
Row Template Class
Add it to configuration file
Step 3
Create template views (CRUD + front views).
resources/views/vendor/nova-visual-composer/templates/ImageText/crud.blade.php
TIPS :
- Each HTML field that you want to save must contains
js-visual-field
class. - If you want a wysiwyg add
js-wysiwyg
class to textarea field. - If you want an image upload field add
js-image-uploader
class to file field. - If you want a multiple images upload field add
js-image-uploader
class +multiple
attribute to file field.
resources/views/vendor/nova-visual-composer/templates/ImageText/front.blade.php
Step 4
Add your translations to language files.
resources/lang/vendor/nova-visual-composer/fr/templates.php
Lint
Run php-cs with:
Contributing
Contributions are welcome! Leave an issue on Github, or create a Pull Request.
Licence
This package is under GNU Affero General Public License v3 or (at your option) any later version.