Download the PHP package craftlogan/laravel-overflow without Composer
On this page you can find all versions of the php package craftlogan/laravel-overflow. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download craftlogan/laravel-overflow
More information about craftlogan/laravel-overflow
Files in craftlogan/laravel-overflow
Package laravel-overflow
Short Description The Laravel Overflow package will allow adding an overflow column to a form request easily. Use this package to make it easy to store overflow request values in a JSON or Text column on a database table:)
License MIT
Homepage https://github.com/craftlogan/laravel-overflow
Informations about the package laravel-overflow
Laravel Overflow
The Laravel Overflow package will allow adding an overflow column to a form request easily. Use this package to make it easy to store overflow request values in a JSON or Text column on a database table:)
Installation
You can install the package via composer:
Usage
Create Model
You should create a model which will use the overflow method.
-m option generates database migration with the model.
Edit Migration
When setting up a migration you can use a json column or a text column:
After setting up fields you should migrate your table.
Available Macros
There are allWithOverflow
and overflow
macros.You can payload Model and Overflow Field for each macros.
allWithOverflow
This macro returns all fields of model as an array
overflow
This macro returns only Overflow Field as a json object
Insert record via create
method
You can use Illuminate\Http\Request
for retrieving Http Requests.
Also, you can use your custom Form Request
.
Insert record via save
method
Using with the object Attributes:
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributors β¨
Thanks goes to these wonderful people (emoji key):
Logan H. Craft π» π |
Daniel π» |
Laravel News π |
Paul Redmond π |
Pierre Arnissolle π» |
Hayri Can BARΓIN π |
Contributing
Please see CONTRIBUTING for details.
This project follows the all-contributors specification. Contributions of any kind welcome!
License
The MIT License (MIT). Please see License File for more information.
This package used scafolding from the Laravel Package Boilerplate built by Marcel Pociot