If you want to see what is run in the database use dd(DB::getQueryLog())
to see what queries were run.
Try this
BookingDates::where('email', Input::get('email'))
->orWhere('name', 'like', '%' . Input::get('name') . '%')->get();
More Related Contents:
- Laravel 5 PDOException Could Not Find Driver
- How can I solve incompatible with sql_mode=only_full_group_by in laravel eloquent?
- Laravel 5.2 – Use a String as a Custom Primary Key for Eloquent Table becomes 0
- Laravel 5.5 Error Base table or view already exists: 1050 Table ‘users’ already exists
- How Can I Set the Default Value of a Timestamp Column to the Current Timestamp with Laravel Migrations?
- Laravel 5.4 on PHP 7.0: PDO Exception – Could not find driver (MySQL)
- SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known
- How can I do a migration in laravel 5.5?
- CONCAT columns with Laravel 5 eloquent
- Eloquent groupBy make “SQLSTATE[42000]” with valid SQL query in Laravel 5.3
- find in set in laravel ? example
- mysql_fetch_array()/mysql_fetch_assoc()/mysql_fetch_row()/mysql_num_rows etc… expects parameter 1 to be resource
- How to properly set up a PDO connection
- Using PHP 5.5’s password_hash and password_verify function
- Search with comma-separated value mysql
- How to do this in Laravel, subquery where in
- I have an array of integers, how do I use each one in a mysql query (in php)? [duplicate]
- PHP MySQLI Prevent SQL Injection [duplicate]
- mysql PDO how to bind LIKE
- Does mysql_real_escape_string() FULLY protect against SQL injection?
- how to access the command line for xampp on windows
- PHP, MySQL and Time Zones
- Using LIKE in bindParam for a MySQL PDO Query [duplicate]
- Password_Hash not working on my PHP login
- Formatting an SQL timestamp with PHP
- Select mySQL based only on month and year
- Mysql InnoDB engine in Laravel
- MySQL: Group by two columns and sum
- Which MySQL datatype to use for an IP address? [duplicate]
- phpmysql error – #1273 – #1273 – Unknown collation: ‘utf8mb4_general_ci’