canvass / canvass-laravel
Laravel Service Provider for the Canvass form builder
Installs: 77
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 3
Language:Blade
Requires
Requires (Dev)
- laravel/framework: ^8.14
- laravel/legacy-factories: ^1.0
- phpunit/phpunit: ^8.3
- dev-master
- v1.02.01
- v1.02.00
- v1.01.03
- v1.01.02
- v1.01.01
- v1.01.00
- v1.00.00
- v0.12.03
- v0.12.02
- v0.12.01
- v0.11
- v0.10
- v0.9.6
- v0.9.5
- v0.9.4
- v0.9.3
- v0.9.2
- v0.9.1
- v0.9.0
- v0.8.2
- v0.8.1
- v0.8.0
- v0.7.0
- v0.6.0
- v0.5.2
- v0.5.1
- v0.5.0
- v0.4.1
- v0.4.0
- v0.3.0
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.1
- v0.1.0
- dev-dependabot/composer/symfony/http-kernel-5.4.20
- dev-dependabot/composer/league/flysystem-1.1.4
- dev-dependabot/composer/laravel/framework-8.40.0
This package is auto-updated.
Last update: 2025-03-01 00:28:58 UTC
README
A Laravel package to build forms and validate form submissions.
Installation
You can install this package with composer:
composer require canvass/canvass-laravel
The package should automatically register itself.
Migrations
You can publish the database migrations using the following command:
php artisan vendor:publish --provider="CanvassLaravel\CanvassServiceProvider" --tag="migrations"
After the migration has been published you can create the form and field tables by running the migrations:
php artisan migrate
Config
You can publish the config file with:
php artisan vendor:publish --provider="CanvassLaravel\CanvassServiceProvider" --tag="config"
Next Steps
Go to /admin/form
to see the Canvass interface to create forms and form fields.
Documentation
You can find more information at the Canvass Core project.
Extending Canvass
You can add new Field types to extend Canvass.
Adding a new Field
- Add a folder that will have FieldData, FieldType and Validate files
- Add the parent path to Forge:
\Canvass\Forge::addFieldPath('/the/file/path', '\The\Namespace\Path');
- Add a view file for the type in:
laravel-dir/resources/views/vendor/canvass/form_field/partials/types