PHPackages                             hyperlink/laravel-created-by - 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. hyperlink/laravel-created-by

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

hyperlink/laravel-created-by
============================

Annoyed by writing the created by foreign user id for every model? Use our blueprint function instead

v1.0.2(3y ago)2142[2 PRs](https://github.com/hyperlinkgroup/laravel-created-by/pulls)MITPHPPHP ^8.1CI passing

Since Jan 18Pushed 4mo agoCompare

[ Source](https://github.com/hyperlinkgroup/laravel-created-by)[ Packagist](https://packagist.org/packages/hyperlink/laravel-created-by)[ Docs](https://github.com/hyperlinkgroup/laravel-created-by)[ RSS](/packages/hyperlink-laravel-created-by/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (12)Versions (7)Used By (0)

laravel-created-by
==================

[](#laravel-created-by)

[![Latest Version on Packagist](https://camo.githubusercontent.com/114265a77fed98adcdc137955f3471d2677c5c5803a647a593f8e61cd408868d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68797065726c696e6b2f6c61726176656c2d637265617465642d62792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hyperlink/laravel-created-by)[![GitHub Tests Action Status](https://camo.githubusercontent.com/83400ae659149aba086c21c22e3108a7f945ebf7cb415f254a4850dd389a79d3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f68797065726c696e6b67726f75702f6c61726176656c2d637265617465642d62792f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/hyperlinkgroup/laravel-created-by/actions?query=workflow%3Arun-tests+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/208a9f7baf64af9d75c2f575fb2336151d9b7f71004e07e39d43a50c9b8869d0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f68797065726c696e6b2f6c61726176656c2d637265617465642d62792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hyperlink/laravel-created-by)

Annoyed by writing the created by foreign user id for every model? Use our blueprint function instead

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require hyperlink/laravel-created-by
```

Usage
-----

[](#usage)

```
Schema::create('foo', function (Blueprint $table) {
    $table->id();
    $table->createdBy();
    $table->updatedBy();
    $table->deletedBy();
    $table->restoredBy();
    $table->timestamps();
    $table->softDeletes();
    $table->restoredAt();
});
```

```
