Download the PHP package latevaweb/laravel-custom-properties without Composer
On this page you can find all versions of the php package latevaweb/laravel-custom-properties. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download latevaweb/laravel-custom-properties
More information about latevaweb/laravel-custom-properties
Files in latevaweb/laravel-custom-properties
Download latevaweb/laravel-custom-properties
More information about latevaweb/laravel-custom-properties
Files in latevaweb/laravel-custom-properties
Vendor latevaweb
Package laravel-custom-properties
Short Description Laravel trait to make add dynamic properties to Eloquent models
License MIT
Homepage https://github.com/latevaweb/laravel-custom-properties
Package laravel-custom-properties
Short Description Laravel trait to make add dynamic properties to Eloquent models
License MIT
Homepage https://github.com/latevaweb/laravel-custom-properties
Please rate this library. Is it a good library?
Informations about the package laravel-custom-properties
Laravel Custom Properties
Trait to add dynamic custom properties to Eloquent models
Once the trait is installed on the model and migration field is added you can do these things:
Installation
You can install the package via composer:
Adding custom properties to a Model
The required steps to add custom properties to a model are:
- First, you need to add the
LaTevaWeb\CustomProperties\HasCustomProperties
-trait. - It is required to add to your model table the field
$table->json('custom_properties')->nullable();
Here's an example of a prepared model:
And the migration:
All versions of laravel-custom-properties with dependencies
PHP Build Version
Package Version
The package latevaweb/laravel-custom-properties contains the following files
Loading the files please wait ....