Skip to content
Icon

WARNING You're browsing the documentation for an upcoming version of Laravel DataTables. The documentation and features of this release are subject to change.

Starts With Search

Starts with search feature allows the package to search our tables with records that starts with the given keyword. To enable the feature, just chain ->startsWithSearch() on your instance.

return datatables()
->eloquent($model)
->startsWithSearch()
->toJson();