I'm having an issue setting an enum column type in MySQL. The column value will be a namespaced classname, such as Accounts\Private
.
The whitelisted values should be Accounts\Private
and Accounts\Merchant
.
Enum seems to be removing the \
from the whitelisted values. Using a double blackslash \\
doesn't work either.
Oddly, adding three blackslashes \\\
causes two backslashes to show.
What am I missing? I'm using Laravel and establishing a polymorphic relationship, which requires the classnames to be namespaced.