Error:
Illuminate\Database\QueryException with message ‘SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘?’ at line 1 (SQL: CREATE DATABASE database)’
No, it just copied wrong from tinker console.
I'm using right apostrophes, also tried to do it with ". Same error.
I thought it was a problem because i had no doctrine installed, but it is not.
One year ago did someone have fix for that?
I have same problem here is the error:
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '?' at line 1 (SQL: CREATE DATABASE :db)
The table it creates is titled "{$phone}" though. I realize that I cannot use bindings to pass the variable in (I tried many many times before finding this answer). Any ideas?