Download the PHP package bnhashem/form-data without Composer
On this page you can find all versions of the php package bnhashem/form-data. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bnhashem/form-data
More information about bnhashem/form-data
Files in bnhashem/form-data
Package form-data
Short Description Make your database columns available in your blade view effortlessly
License MIT
Homepage https://github.com/bnhashem16/form-data
Informations about the package form-data
FormData Package
Make your database columns available in your blade view effortlessly.
Installation
You can install the package via composer:
Features
- Incredibly easy to use.
- Help use signle form for create and update.
- The values name are the same as the database columns name, save you calling
old
conditionally in the view.
Usage
Create
Edit
Example
We will try to store a new post
Mind that the name of variable must be the same as the column name value in the database
We will try to edit a post
Json Columns
Somtimes Column have many values and unique keys, in this case We will do the following:
posts table migration
Post Model
Add static property $JSONCOLUMNS
, with column names and the the keys that you want to add in the blade.
Fetch Data From Json columns in blade
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Ahmed Mohamed Hashem
- All Contributors
License
The MIT License (MIT). Please see License File for more information.