title: How to rename attributes in Eloquent?
body: <pre><code>           Select distinct
            `users`.`name` as user_name,
            `practices`.`name` as practice_name,
            `userlevels`.`name` as userlevel_name,
            `usertypes`.`name` as usertypes_name,              
            `users`.`active` as user_status,
            `users`.`email` as user_email              
             from `network_user`
             left join `users` on `network_user`.`user_id` = `users`.`id`
             left join `practice_user` on `users`.`id`=`practice_user`.`user_id`
             left join `practices` on `practice_user`.`practice_id`=`practices`.`id`
             left join `userlevels` on `users`.`level`=`userlevels`.`id`
             left join `usertypes` on `users`.`usertype_id`=`usertypes`.`id`
             where `network_user`.`network_id`= 9
             ;
  </code></pre>
  
  <p>this is my sql raw query i am new to eloquent facing problem with can any one tell me how to rename attributes in eloquent.Thanks in advance.</p>