I want to ask if is possible with eloquent making model with condition on column. for example, i want to make table users with column role enum('teacher','student') how to make models for student and teacher? thanks.
use single Table Inheritance (STI) or Sub-classing through this package caleb porzio parental
2.1m questions
2.1m answers
60 comments
57.0k users