laravel select query with where condition laravel 8 code example Example: DB::table('users')->get(); DB::table('users')->where('name', Input::get('name'))->get();