| Package Data | |
|---|---|
| Maintainer Username: | Andrey Kharanenka |
| Maintainer Contact: | kharanenka@gmail.com (Andrey Kharanenka) |
| Package Create Date: | 2016-11-14 |
| Package Last Update: | 2016-11-14 |
| Language: | PHP |
| License: | GPL-3.0 |
| Last Refreshed: | 2025-11-05 15:03:28 |
| Package Statistics | |
|---|---|
| Total Downloads: | 37,907 |
| Monthly Downloads: | 526 |
| Daily Downloads: | 34 |
| Total Stars: | 1 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
You can use trait in your models with "user_id" field (int)
#Installation
Require this package in your composer.json and update composer.
"kharanenka/laravel-scope-user-belongs-to": "1.0.*"
class MyModel extend Model {
use Kharanenka\Scope\UserBelongsTo;
...
}
$obElement = MyModel::getByUser(10)->first();