Cách query filter đơn giản hơn trong Laravel.
Trong một dự án thực tế việc chúng ta phải query filter cho các phần search data cho một website là một chức năng thông thường. Vậy làm sao để xây dựng filter một cách hiệu quả dễ mở rộng, thay đổi, tái sử dụng. Trong bài viết này mình sẽ hướng dẫn các bạn query filter trong laravel và nó không thật sự quá khó đâu.
1. Cách làm thông thường
public function index(Request $request)
{
$user =...
Laravel
queryfilter
2142