laravel eloquent Where Like query example
In this article, We will explain to you how to use where like query in laravel(laravel where like query). The laravel eloquent provides many types of eloquent methods.
The where like method will return data the same values. so you can see below the following example.
1 2 3 4 | $fname='john'; $students = DB::table('students') ->where('first_name','LIKE','%'.$fname.'%') ->get(); |
Please follow and like us: