Laravel Like Query Example using Eloquent Where Clause
Eloquent Laravel Like Query and the Laravel Query Builder you can build your queries directly in PHP without writing any SQL yourself. This article will show you how to work with conditional queries in Laravel.
SQL Example:
SELECT *
FROM `table_name`
WHERE `column_name` LIKE '%search%';
Laravel Query Example:
$search = 'search';
$result = TableName::where('column_name','LIKE',"%{$search}%")->get();