peltonsolutions / laravel-ownerable
A custom package for Laravel to make it easier to attach and require classes to belong to a tenant.
Requires
- php: ^8.2
- laravel/framework: ^11.0
Requires (Dev)
- pestphp/pest: ^2.33
- pestphp/pest-plugin-livewire: ^2.1
This package is not auto-updated.
Last update: 2025-06-19 19:30:21 UTC
README
Laravel Ownerable, developed by Pelton Solutions, can be used to help make certain classes owned by other classes. For example, in a tenant system, where a BlogPost might be owned by an Account. It automatically assigns the owner and requires the owner when the owned class is queried.
Install
You can install the package via composer using the following command:
composer require peltonsolutions/laravel-ownerable
Testing
To ensure that laravel-ownerable is functioning correctly, you can run the package's tests using:
composer test
Security
If you discover any security-related issues, please email security@peltonsolutions.com instead of using the issue tracker.
Credits
License
laravel-ownerable is open-sourced software. It's licensed under the MIT license, which is a permissive license allowing the software to be used, modified, and shared.