I am new to laravel query builder, I want to search multiple words entered in an input field for example if I type \"jhon doe\" I want to get any column that contains jhon o
You can use this package https://github.com/nicolaslopezj/searchable
or just do this, if you don't want to use package
$keywordRaw = "jhon doe"; $users = User::where('first_name', 'LIKE', $keywordRaw.'%') ->orWhere('first_name', 'LIKE', '% '.$keywordRaw.'%') ->get();