dillingham / formation

Laravel search, sort, and filters
MIT License
0 stars 0 forks source link

formation->merge #37

Open dillingham opened 2 years ago

dillingham commented 2 years ago

Adding hardcoded filters

Useful for defining routes with filters: /active

public function active(ArticleFormation $formation)
{
    $formation->merge(['status' => 'active']);

    return $formation->results();
}

maybe a better name than merge