UserDynamicFilter.php
426 Bytes
<?php
namespace App\ModelFilters;
use App\Support\ModelFilter;
class UserDynamicFilter extends ModelFilter
{
/**
* @param int $user
* @return void
*/
public function user(int $user): void
{
$this->where('user_id', $user);
}
/**
* @param string $type
* @return void
*/
public function type(string $type): void
{
$this->where('type', $type);
}
}