An addon package for Laravel Storyblok that lets you use the Storyblok headless CMS as a form builder.
This page requires Laravel Storyblok
First install the package.
composer require riclep/laravel-storyblok-forms
Publish the package assets - this will copy stub views for each form component
php artisan vendor:publish
Tell Laravel Storyblok where to find the Form Block classes but editing your laravel-storyblok config file and adding the Riclep\StoryblokForms namespace.
'component_class_namespace' => ['Riclep\StoryblokForms\\', 'App\Storyblok\\'],
Install the components - this will create the required components and component groups in Storyblok. Ensure you have your management key and space ID set up in the .env, see Laravel Storyblok installation for details.
php artisan lsf:install
- Use the install Artisan command to create the required components in Storyblok
- Add fields and validation rules in Storyblok
- Simple validation
- Outputs collected form data in a structured format
More validation and field types.
Please feel free to help expand and improve this project. The package uses Git Flow but you can submit a pull request to be merged to the develop branch.
If you discover any security related issues, please email ric@wearebwi.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the Laravel Package Boilerplate.