{"repo":"asseco-voice/laravel-custom-fields","free":true,"listed":false,"github":"https://github.com/asseco-voice/laravel-custom-fields","clone":"git clone https://github.com/asseco-voice/laravel-custom-fields.git","description":"Extensible Laravel models without the need for additional database attributes","language":"PHP","stars":50,"topics":["laravel","php","laravel-package","laravel-framework","database","microservice","microservices","laravel-8-package"],"license":"MIT","category":"databases-storage","readme_excerpt":"Custom fields Purpose of this repository is to provide custom field support for any Laravel model. Custom field can be any field with which you wish to extend your model providing a highly flexible model for additional fields, without the need to add new attributes to a DB model. Installation Require the package with composer require asseco-voice/laravel-custom-fields . Service provider will be registered automatically. Setup In order to use this repository the following must be done: 1. Each model which requires custom field support MUST use Customizable trait. 1. Run php artisan migrate to migrate package tables 1. Run php artisan db:seed --class=\"Asseco\\CustomFields\\Database\\Seeders\\PlainTypeSeeder\" to seed mandatory data only. 1. You may include CustomFieldPackageSeeder within your DatabaseSeeder seeders and have it seed mandatory data in all environments or seed all other dummy data in non-production environments. ERD Custom field types breakdown A single custom field can assume the form of one of three different types of custom fields, all of which are a polymorphic relation to custom fields table. Plain type Plain types are a standard single-value properties like int/string/date etc. Be sure to seed the mandatory data before you go and use the package as these fields map directly to custom field value attributes depending on their type. I.e. if you say that custom field is of a plain string value, its value will be written in the string column of a custom field values ","default_branch":null,"files":null,"tree":[],"storefront":"/r/asseco-voice","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/asseco-voice/laravel-custom-fields/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}