In this example I will show you how to build an Eloquent query to filter results by certain field or fields of a table. In this example we will use simple Laravel Eloquent Model example to search a table and…
Tag: query
Searching array elements with regex in Mongodb collection
Mongodb works Javascript way. Every mongodb collection is a JSON object containing all kinds of Javascript objects such as boolean, arrays, objects and strings. In this example I am saving two different fields to my categories collection. searchableName – for…