Download the PHP package awssat/laravel-kabsa without Composer
On this page you can find all versions of the php package awssat/laravel-kabsa. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download awssat/laravel-kabsa
More information about awssat/laravel-kabsa
Files in awssat/laravel-kabsa
Package laravel-kabsa
Short Description Laravel Array database
License MIT
Homepage https://github.com/awssat/laravel-kabsa
Informations about the package laravel-kabsa
Laravel Kabsa 🍗
Laravel Kabsa is a simple array trait for your Eloquent model just like https://github.com/calebporzio/sushi without SQLite
Install
To get started with Laravel Kabsa, use Composer to add the package to your project's dependencies:
Examples
Code examples available see: examples
Use
- Add the
Kabsa
trait to a model. - Add a
$rows
property to the model.
or
Now, you can use this model anywhere you like, and it will behave as if you created a table with the rows you provided.
Relationships
You can add a relationship to another standard model with help of new trait called KabsaRelationships
right now I have just added two relationships hope we add more
the users
table should have a role_label
column, then:
Eager loading doesn't work because it's a collection you don't need eager load you can call the relation ->relation
directly. If you need it to be appended to the collection array you can create an attribute and add it to $appends.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-kabsa with dependencies
illuminate/support Version ~5.5.0 || ~5.6.0 || ~5.7.0 || ~5.8.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0