In terms of the migration file, you could just manually handle the alter/create table using DB::unprepared() possibly.
Actually, Eloquent handles SET type as text, since it is stored as such.
Don't think there is an easy way to handle it correctly with Eloquent. I'm going to store integers (despite it makes it harder to read in the DB) and use logical operators for comparisons and values checks with PHP constants (if it's not readable in the DB, at least it will be in the code).
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community