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