Looking to hire Laravel developers? Try LaraJobs

laravel-ownable maintained by yuges-code

Description
💼 Package for easily attaching ownerships to Laravel eloquent models
Author
Last update
2026/01/15 20:03 (dev-main)
License
Downloads
5

Comments
comments powered by Disqus

💿 Installation

→ Composer

You can install the package via composer:

composer require yuges-code/laravel-ownable

→ Publishing Config

Publishing the config file (config/ownable.php) is optional:

php artisan vendor:publish --provider="Yuges\Ownable\Providers\OwnableServiceProvider" --tag="ownable-configs"

→ Publishing Migrations

You need to publish the migration to create the ownerships table:

php artisan vendor:publish --provider="Yuges\Ownable\Providers\OwnableServiceProvider" --tag="ownable-migrations"

→ Running Migrations

After that, you need to run migrations:

php artisan migrate

🧪 Running Tests

→ PHPUnit tests

To run tests, run the following command:

composer test

⚖️ License

The MIT License (MIT). Please see License File for more information.

🙆🏼‍♂️ Authors Information

Created in 2025 by: