PHPackages                             sysbox/laravel-base-entity - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. sysbox/laravel-base-entity

ActiveLibrary[Database &amp; ORM](/categories/database)

sysbox/laravel-base-entity
==========================

A base model for non-numerical id and common attributes: id, active, created, created\_at, updated, updated\_at

v1.0.14(6y ago)016MITPHPCI failing

Since May 15Pushed 6y ago1 watchersCompare

[ Source](https://github.com/sysbox-pty-ltd/laravel-base-entity)[ Packagist](https://packagist.org/packages/sysbox/laravel-base-entity)[ RSS](/packages/sysbox-laravel-base-entity/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (3)Used By (0)

Base Entity for Laravel models
==============================

[](#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
------------

[](#installation)

Via Composer

```
$ composer require sysbox/laravel-base-entity
```

Setup
-----

[](#setup)

\###step 1 Publish the config file

```
$ php artisan vendor:publish --provider='Sysbox\LaravelBaseEntity\LaravelBaseEntityServiceProvider'
```

\###step 2 Setup your laravel's interface model, like below: edit `/app/User.php`

```
class User extend BaseModel implements UserReferable
