Support the ongoing development of Laravel.io →
Database Eloquent

I have some tables for enums that I want to store in the database. Is there a good way to handle this in my db migrations, or do I just hand code the SQL in the migration after the table is created?

Example:

Status id 1 name guest

id 2 name unconfirmed

id 3 name confirmed

Last updated 3 years ago.
0

it should go as a migration

0

Sign in to participate in this thread!

Eventy

Your banner here too?

mdridley mdridley Joined 6 Mar 2017

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.