Skip to content
Icon

WARNING You're browsing the documentation for an old version of LARAVEL-DATATABLES. Consider upgrading your project to laravel-datatables 11.0.

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();