Package Data | |
---|---|
Maintainer Username: | jumper423 |
Maintainer Contact: | jump.e.r@yandex.ru (Влад Пасечник) |
Package Create Date: | 2016-10-07 |
Package Last Update: | 2016-10-28 |
Language: | PHP |
License: | Apache 2.0 |
Last Refreshed: | 2025-01-25 15:13:51 |
Package Statistics | |
---|---|
Total Downloads: | 27 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Pull this package in through Composer. (development version dev-master
)
{
"require": {
"jumper423/laravel-filter": "~1.0"
}
}
$ composer update
##Пример
use jumper423\LaravelTrait\Filter;
class Post{
use Filter;
protected $filterColumns = [
'user_name' => 'user.first.name'
];
}
$posts = Post::join('users', 'users.id', '=', 'posts.user_id')
->filter([
[
'name' => 'user_name'
'value' => 'Вася'
]
])->get();