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/Models/User.php

    r120759b rd795fa6  
    2626        "password",
    2727        "email",
    28         "mobile_number",
     28        "phone_number",
    2929        "avatar",
    3030        "role_id"
     
    129129        return Str::random($length);
    130130    }
     131
     132    public function getCreatedByName()
     133    {
     134        return User::where('id', $this->created_by)->pluck('username')->first();
     135    }
    131136}
Note: See TracChangeset for help on using the changeset viewer.