I have one question, that seems to be logical, but I can't find answer for it. Let's say I have Model Task:
class Task extends Eloquent {
protected $fillable = array('is_done');
}
So, I have one property is_done
, but when working on frontend and backend part of application, I would like to have isDone
as model property.
Is there a way to say it to framework, to somehow repack it for me? So that I am able to use isDone
, throughout application, and that Model takes care of converting it to is_done
, when it comes to saving/updating.
This would help me, so I don't have to think about names specified in database (like when using alias in traditional SQL clauses).
Is this possible at all? Does it make sense?