| Package Data | |
|---|---|
| Maintainer Username: | Andrey Kharanenka |
| Maintainer Contact: | kharanenka@gmail.com (Andrey Kharanenka) |
| Package Create Date: | 2016-11-12 |
| Package Last Update: | 2016-11-12 |
| Language: | PHP |
| License: | GPL-3.0 |
| Last Refreshed: | 2025-10-23 15:04:35 |
| Package Statistics | |
|---|---|
| Total Downloads: | 37,821 |
| Monthly Downloads: | 539 |
| Daily Downloads: | 24 |
| Total Stars: | 1 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
You can use trait in your models with "name" field (string)
#Installation
Require this package in your composer.json and update composer.
"kharanenka/laravel-scope-active": "1.0.*"
class MyModel extend Model {
use Kharanenka\Scope\NameField;
...
}
$obElement = MyModel::getByName('Andrey')->first();
$obElement = MyModel::likeByName('And')->first();
$obElement = MyModel::nullName()->get();
$obElement = MyModel::notNullName()->get();