PHPackages                             trinavo/laravel-ownable - 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. trinavo/laravel-ownable

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

trinavo/laravel-ownable
=======================

A Laravel package for managing ownership of models.

15PHP

Since Mar 23Pushed 1y ago1 watchersCompare

[ Source](https://github.com/doonfrs/laravel-ownable)[ Packagist](https://packagist.org/packages/trinavo/laravel-ownable)[ RSS](/packages/trinavo-laravel-ownable/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Ownable Trait
=====================

[](#laravel-ownable-trait)

A Laravel package that adds ownership capabilities to your Eloquent models.

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

[](#installation)

You can install the package via composer:

```
composer require trinavo/ownable
```

### Migrations

[](#migrations)

After installing the package, you need to publish and run the migrations to create the necessary database tables:

```
php artisan vendor:publish --provider="Trinavo\Ownable\OwnableServiceProvider" --tag="migrations"
php artisan migrate
```

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

Add the `Ownable` trait to any Eloquent model that you want to make ownable:

```
