Download the PHP package grixu/socius-models without Composer
On this page you can find all versions of the php package grixu/socius-models. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download grixu/socius-models
More information about grixu/socius-models
Files in grixu/socius-models
Package socius-models
Short Description Models for Socius API and all apps using Socius which need to keep local copy of data.
License MIT
Homepage https://github.com/grixu/socius-models
Informations about the package socius-models
Socius Models
This package contains models for Socius API and all apps using Socius and need to keep local data copy.
Installation
You can install the package via composer:
Usage
Models are divided into 5 modules:
- product
- customer
- operator
- warehouse
- description
Of course, some models have cross-module relationships. Some of them are very natural like: descriptions have foreign key to products (it's obvious). We created migrations, models and factories to be much flexible as possible. So we only assume that tables in each module exists - models just checking table exists on cross-module relationships.
Publishing migrations
By default, package do not loading migrations to your application. You must do it manually - it gives you
power to control table structure - in case if you want to add some custom fields. If you do so,
please remember about extending Model and overwrite default $fillable
.
To publish migrations:
Generating models & factories
You can also create local, customizable version both models & their factories. To do that just type:
You also could generate them with custom namespace for model & factory:
Same way with factories:
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Mateusz Gostański
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of socius-models with dependencies
grixu/data-factories Version ^2.0
grixu/socius-dto Version ^2.0
illuminate/database Version ^9.0
illuminate/support Version ^9.0
spatie/data-transfer-object Version ^3.8
spatie/laravel-enum Version ^3.0