I had a similar Problem and solved it by disabling mysql strict mode in the database connection setting.
'connections' => [
'mysql' => [
// Behave like MySQL 5.6
'strict' => false,
// Behave like MySQL 5.7
'strict' => true,
]
]
You can find even more configuration settings in this blog post by Matt Stauffer
Related Contents:
- Laravel 5.2 – Use a String as a Custom Primary Key for Eloquent Table becomes 0
- How to do this in Laravel, subquery where in
- Laravel 5 PDOException Could Not Find Driver [duplicate]
- Laravel Check If Related Model Exists
- How can I convert many statement mysql to laravel eloquent?
- How Can I Set the Default Value of a Timestamp Column to the Current Timestamp with Laravel Migrations?
- Laravel-5 ‘LIKE’ equivalent (Eloquent)
- Laravel Model with Two Primary Keys update [duplicate]
- Laravel 5.4 on PHP 7.0: PDO Exception – Could not find driver (MySQL)
- Laravel OrderBy relationship count
- Merge ‘with’ and ‘whereHas’ in Laravel 5
- Laravel Checking If a Record Exists
- Laravel $q->where() between dates
- Laravel 5 hasMany relationship on two columns
- Laravel 5.5 Error Base table or view already exists: 1050 Table ‘users’ already exists
- Difference between Eloquent\Model::get() and all()
- SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known
- PDOException “could not find driver”
- Best way to INSERT many values in mysqli?
- Using PHP 5.5’s password_hash and password_verify function
- PHP code to convert a MySQL query to CSV [closed]
- Best way to avoid duplicate entry into mysql database
- Get the Last Inserted Id Using Laravel Eloquent
- Bulk Insertion in Laravel using eloquent ORM
- Running MySQL *.sql files in PHP
- I need my PHP page to show my BLOB image from mysql database
- How to retract a salted password from the Database and auth user?
- How can I properly use a PDO object for a parameterized SELECT query
- How to insert multiple rows from a single query using eloquent/fluent
- mysqli_stmt::bind_param(): Number of elements in type definition string doesn’t match number of bind variables
- I cannot get my login form to connect interact properly with mySQL database [closed]
- How to search for slash (\) in MySQL? and why escaping (\) not required for where (=) but for Like is required?
- displaying an image stored in a mysql blob
- Geo-Search (Distance) in PHP/MySQL (Performance)
- Warning: mysqli_query() expects parameter 1 to be mysqli, resource given [duplicate]
- Concatenating a string and primary key Id while inserting
- PHP – Secure member-only pages with a login system
- How to bind parameters to a raw DB query in Laravel that’s used on a model?
- “Warning: Cannot modify header information – headers already sent by” error [duplicate]
- Using LIKE in bindParam for a MySQL PDO Query [duplicate]
- Do SQL connections opened with PDO in PHP have to be closed
- Calculating distance between zip codes in PHP
- How to store NULL values in datetime fields in MySQL?
- MySQL retrieve variable from Stored Procedure in PHP PDO
- Laravel password validation rule
- Warning: PDO::__construct(): [2002] No such file or directory (trying to connect via unix:///tmp/mysql.sock) in
- double results in my array ( mysql_fetch_array )
- #1193 – Unknown system variable ‘lc_messages’ when trying to login to phpmyadmin
- Laravel Eloquent update just if changes have been made
- How can I employ “if exists” for creating or dropping an index in MySQL?