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