Changeset d795fa6 for app/Models/User.php
- Timestamp:
- 10/17/21 18:39:50 (3 years ago)
- Branches:
- develop, master
- Children:
- bd9e8e3
- Parents:
- 120759b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Models/User.php
r120759b rd795fa6 26 26 "password", 27 27 "email", 28 " mobile_number",28 "phone_number", 29 29 "avatar", 30 30 "role_id" … … 129 129 return Str::random($length); 130 130 } 131 132 public function getCreatedByName() 133 { 134 return User::where('id', $this->created_by)->pluck('username')->first(); 135 } 131 136 }
Note:
See TracChangeset
for help on using the changeset viewer.