Is it possible to create aliases for the column names of a table in Laravel's Model? Example: I have a questao
table with columns:
id
questao
disciplinas_id
serie_id
professor_id
It would be simpler if I could treat the columns by other names within the application. Call professor_id
of prof
, for example. I gave one searched but found nothing that would help me. Anyone know if Eloquent allows this? If so, how?