For anyone that comes across this, like I did myself, it creates a varchar(255) column and adds a constraint to allow only the specified strings.
return "varchar(255) check (\"{$column->name}\" in (".implode(', ', $allowed)."))";
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community