laravel-forms | Database driven laravel forms | Database library
kandi X-RAY | laravel-forms Summary
kandi X-RAY | laravel-forms Summary
Database driven laravel forms
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Register the mappings .
- Seed the users table
- Checks if captcha is valid .
- Transforms form data .
- Renders the form control .
- Transforms a collection .
- Boot the package .
- Show the dashboard .
- Get the answer value .
- Updates the form .
laravel-forms Key Features
laravel-forms Examples and Code Snippets
Community Discussions
Trending Discussions on laravel-forms
QUESTION
I'm trying to set up a simple CMS in laravel where blog posts can be created and saved in a database. I've been following a YouTube tutorial which uses the Resource Controller and it's working fine. However the tutorial series uses the laravel-Forms to pass parameters to the Controller which is deprecated, because of this I tried replacing the laravel-Form with a regular html-Form but I can't get it to work.
The particular series and part of it I'm talking about is this one: https://www.youtube.com/watch?v=-QapNzUE4V0&index=7&list=PLillGF-RfqbYhQsN5WMXy6VsDMKGadrJ-
I will paste the "create" view which contains the form that I'm talking about underneath, and then the one I replaced it with which is not working.
...ANSWER
Answered 2019-Jan-04 at 10:10You'll get a 419 error because the CSRF field is not present in the form request. The Laravel Form package will automatically add this for you but in a standard HTML form you will have to add it yourself. Thankfully, this is very simple. Inside your
@csrf
e.g.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install laravel-forms
Install composer package composer require musonza/laravel-forms
Publish Assets php artisan vendor:publish
Add Form facade to config/app.php 'Form' => Musonza\Form\Facades\FormFacade::class,
Run migrations php artisan migrate
Check the published file config/laravel_forms.php You can enable / disable captcha You can configure the path for your forms dashboard You can add custom field types
Access dashboard at http//your-url.com/laravel-forms (you can change the path in config/laravel_forms.php)
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page