title: Laravel eloquent model - model extends model
body: <p>is it possible to extend a laravel 4 eloquent model with another model, let's say i have a user model extending the eloquent class and additionally there is a second class, a administrator class extending the user class?</p>
  
  <p>If i just linked the administrator class to the user i'd have to access the administrators attributes by first getting the administrator attribute of the user and then getting the admins attributes.</p>
  
  <p>EDIT:</p>
  
  <p>Let's say I have the Administrator not extending the User. I'd have to access e.g. the phone number(a administrators attribute) like this
  <code>
  $user = User::find(1);
  $phone = $user-&gt;administrator-&gt;phone;
  </code>
  but by letting the Administrator extend the User I am able to access the phone number directly  like this maybe
  <code>$user = Administrator::find(1);</code> (Note that the id passed to find the Administrator is the same like the one I use to get the user. Normally I would have to pass the real id of the entry in the Administrator database)
  <code>$phone = $user-&gt;phone;</code>
  At the same time it would be possible to access an attribute of the user class e.g. <code>$phone = $user-&gt;email;</code></p>
  
  <p>or maybe there is a better solution to achieve this or it makes no sense to use it like this, if so, feel free to tell me</p>