Changeset d795fa6 for app/Http/Controllers/Dashboard/UsersController.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/Http/Controllers/Dashboard/UsersController.php
r120759b rd795fa6 8 8 use App\Http\Requests\Dashboard\UpdateUserRequest; 9 9 use App\Models\Avatar; 10 use Carbon\Carbon; 10 11 use Illuminate\Support\Facades\File; 11 12 use App\Models\Role; … … 41 42 $user->surname = $request->surname; 42 43 $user->email = $request->email; 43 $user-> mobile_number = $request->mobile_number;44 $user->phone_number = $request->phone_number; 44 45 $user->username = $request->username; 45 46 $user->password = $user->generateTemporaryPassword(); … … 85 86 $user->username = $request->username; 86 87 $user->email = $request->email; 87 $user-> mobile_number = $request->mobile_number;88 $user->phone_number = $request->phone_number; 88 89 $user->role_id = $request->userRole; 90 $user->updated_at = $request->Carbon::now();; 89 91 90 92 if ($request->hasFile("avatar")) { … … 152 154 $user->name = $request->name; 153 155 $user->surname = $request->surname; 154 $user-> mobile_number = $request->mobile_number;156 $user->phone_number = $request->phone_number; 155 157 156 158 if ($request->hasFile("avatar")) {
Note:
See TracChangeset
for help on using the changeset viewer.