Download the PHP package codemenorg/fakefield without Composer
On this page you can find all versions of the php package codemenorg/fakefield. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codemenorg/fakefield
More information about codemenorg/fakefield
Files in codemenorg/fakefield
Package fakefield
Short Description Hide original field name from end user.
License MIT
Homepage https://github.com/codemenorg/fakefield
Informations about the package fakefield
Laravel Fake Field
Hide original field name from end user. It will generate new field name(fake field) every time while you refresh your page.
Installation
You can install the package via composer:
For Laravel 5.8 use composer require codemenorg/fakefield:1.0.0
Usage
After installing the package, run the following command to generate fakefield.php
config file. Here you have to define fake field prefix and Eloquent Model path.
Add FakeFieldMiddleware
to app\Http\Kernel.php
web middleware group section.
Inside your model you have to define which fields you want to change.
Now you are ready to use fake field inside your form.
Here @fakeKey
blade directive will generate a fake key without fake field will not working properly. You can also use fake_key()
helper function to generate fake key.
fake_field()
helper function will generate fake field.
If the field is not defined in Model then the function will return original field name.
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
To contribute you can create a pull request. But please check all functionality are working before creating pull request. We will publish your name on contribution list.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Codemen
- All Contributors
License
The MIT License (MIT). Please see License File for more information.