PHPackages                             dereffi/issuing - 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. dereffi/issuing

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

dereffi/issuing
===============

PHP package built for Laravel 5.\* to save creator last updator and deletor in database tables

1.0.0(6y ago)012MITPHP

Since Jun 19Pushed 6y ago1 watchersCompare

[ Source](https://github.com/DerEffi/laravel-issuing)[ Packagist](https://packagist.org/packages/dereffi/issuing)[ RSS](/packages/dereffi-issuing/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)DependenciesVersions (7)Used By (0)

**DerEffi/laravel-issuing** is a PHP package built for Laravel 5.\* to save creator last updator and deletor in database tables

[View on Packagist](https://packagist.org/packages/dereffi/issuing)

VERSIONS
--------

[](#versions)

**This package is Laravel 5.8 compliant.**Currentl Package version 0.1.0

ABOUT
-----

[](#about)

- Easy add the columns `created_by`, `updated_by` and `deleted_by` in the migration files
- Auto storing the data in mentioned columns on eloquent events
- Auto adding relationships on the selected models
- Easy customization over the config file

INSTALLATION
------------

[](#installation)

This project can be installed via [Composer](http://getcomposer.org). To get the latest version of the Issuing Package run the following command:

```
composer require dereffi/issuing

```

After the installation you can run following command to publish the config file

```
php artisan vendor:publish --tag=dereffi-issuing

```

Usage
-----

[](#usage)

#### CONFIGURATION

[](#configuration)

The model representing the `Issuer` must implement the authenticatable interface `Illuminate\Contracts\Auth\Authenticatable` *(or any child of it)*which is the default with the Eloquent `User` model.

Easy Configuration of the `Issuer` Model and the database column in the config file `issuing.php`

#### Migrations

[](#migrations)

To auto create the `*_by` columns to migration tables you have to call the `IssuerColumns` class anywhere in the `Schema::create` function with the `$table` as parameter. The names of the columns can be changed in the `config/issuing.php` file. If you do so you have to refresh the migration or do it bevor you migrate your tables.

Following exaple with the default laravel users migration file:

```
