laravel eloquent search query 2020
snippet in php

laravel eloquent search query 2020

user8425

$result = Marriage::where('name','LIKE','%'.$email_or_name.'%')
                ->orWhere('email','LIKE','%'.$email_or_name.'%')
                ->get();