Can any Brother guide me in writing the filter function at UserManagementController in Laravel?
Can anyone guide me to capture requests at this index so I can do the filter function, for example, filtering from date to date for UserManagementController in Laravel ?
class UserManagementController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index(UsersDataTable $dataTable)
{
return $dataTable->render('pages/apps.user-management.users.list');
}
Replies (1)
Hi Thắng Lê
The Metronic Laravel project uses the Yajra DataTable plugin for handling data tables. To implement a filter function, you can refer to the official documentation of Yajra DataTables for manual search functionality.
Here is the link to the documentation: https://yajrabox.com/docs/laravel-datatables/10.0/manual-search
The documentation provides detailed instructions on how to implement manual search functionality, which you can adapt to create a date range filter for your UserManagementController.
If you need further assistance, feel free to ask!
Thanks