laravel-id-generator
laravel-id-generator copied to clipboard
Escape field name in "total" query
Using field name like "index" causes error, because index is reserved word and need to by escaped.
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 'index) total FROM issues' at line 1 (Connection: mysql, SQL: SELECT count(index) total FROM issues)