large changes

This commit is contained in:
Omair Saleh
2019-03-12 12:39:13 +08:00
parent e09d1047ef
commit 34725c82ca
2 changed files with 3 additions and 6 deletions
+1
View File
@@ -18,6 +18,7 @@ class User extends JsonResource
{
return [
'full_name' => $this->first_name.' '.$this->last_name,
'email' => $this->email,
'role' => UserRoles::ROLES_NAMES[$this->role_id],
'created_at' =>Carbon::parse($this->created_at)->format('d/m/Y')
];