Ignore:
Timestamp:
10/17/21 18:39:50 (3 years ago)
Author:
Berat Kjufliju <kufliju@…>
Branches:
develop, master
Children:
bd9e8e3
Parents:
120759b
Message:

added validation to blades

File:
1 edited

Legend:

Unmodified
Added
Removed
  • app/Http/Controllers/Dashboard/UsersController.php

    r120759b rd795fa6  
    88use App\Http\Requests\Dashboard\UpdateUserRequest;
    99use App\Models\Avatar;
     10use Carbon\Carbon;
    1011use Illuminate\Support\Facades\File;
    1112use App\Models\Role;
     
    4142        $user->surname = $request->surname;
    4243        $user->email = $request->email;
    43         $user->mobile_number = $request->mobile_number;
     44        $user->phone_number = $request->phone_number;
    4445        $user->username = $request->username;
    4546        $user->password = $user->generateTemporaryPassword();
     
    8586        $user->username = $request->username;
    8687        $user->email = $request->email;
    87         $user->mobile_number = $request->mobile_number;
     88        $user->phone_number = $request->phone_number;
    8889        $user->role_id = $request->userRole;
     90        $user->updated_at = $request->Carbon::now();;
    8991
    9092        if ($request->hasFile("avatar")) {
     
    152154        $user->name = $request->name;
    153155        $user->surname = $request->surname;
    154         $user->mobile_number = $request->mobile_number;
     156        $user->phone_number = $request->phone_number;
    155157
    156158        if ($request->hasFile("avatar")) {
Note: See TracChangeset for help on using the changeset viewer.