Every DataTable component must define a base query, which is the start of the query that will be appended to for the rest of the components included functionality.
Right now only Eloquent models are supported.
1publicfunctionquery():Builder
2{
3returnUser::query();
4}
The query is where you will append custom searching and filters later in the documentation. You should also eager load any relationships you need here as well.
Make sure your query includes a column to be used as the primary key.
Global search
Find something useful.
Start with two characters.Search the open-source catalog, article library, and code snippets.