Download the PHP package sysbox/laravel-base-entity without Composer
On this page you can find all versions of the php package sysbox/laravel-base-entity. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download sysbox/laravel-base-entity
More information about sysbox/laravel-base-entity
Files in sysbox/laravel-base-entity
Download sysbox/laravel-base-entity
More information about sysbox/laravel-base-entity
Files in sysbox/laravel-base-entity
Vendor sysbox
Package laravel-base-entity
Short Description A base model for non-numerical id and common attributes: id, active, created, created_at, updated, updated_at
License MIT
Package laravel-base-entity
Short Description A base model for non-numerical id and common attributes: id, active, created, created_at, updated, updated_at
License MIT
Keywords laravelBaseEntity
Please rate this library. Is it a good library?
Informations about the package laravel-base-entity
Base Entity for Laravel models
This package provides the base model for laravel models with 6 key fields:
- id ( non numeric / non incremental )
- active ( boolean )
- created_by_id ( the id of the creator )
- created_at ( the timestamp of the creating )
- updated_by_id ( the id of the updater )
- updated_at ( the timestamp of the updating )
Installation
Via Composer
Setup
step 1
Publish the config file
step 2
Setup your laravel's interface model, like below:
edit <laravel-root-dir>/app/User.php
step 3
Setup your config file:
edit <laravel-root-dir>/config/LaravelBaseEntity.php
, you will see something like:
Usage
Now you should be able to create any Laravel Model and just extend from BaseModel, like this
And you can also create columns in migration, like this:
All versions of laravel-base-entity with dependencies
PHP Build Version
Package Version
Requires
illuminate/support Version
~5|~6|~7
The package sysbox/laravel-base-entity contains the following files
Loading the files please wait ....