PHPackages                             binarycabin/laravel-author - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. binarycabin/laravel-author

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

binarycabin/laravel-author
==========================

A simple way to generate the model's author user when created

1.0.0(8y ago)054MITPHP

Since Nov 14Pushed 8y agoCompare

[ Source](https://github.com/binarycabin/laravel-author)[ Packagist](https://packagist.org/packages/binarycabin/laravel-author)[ RSS](/packages/binarycabin-laravel-author/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Laravel-Author
==============

[](#laravel-author)

A simple way to generate the model's author user when created

```
composer require binarycabin/laravel-author

```

This package adds a very simple trait to automatically save the user id who created this model.

Simply add the "\\BinaryCabin\\LaravelAuthor\\Traits\\HasAuthorUser;" trait to your model:

```
