Changeset 53d99ce for app/Models


Ignore:
Timestamp:
10/23/21 19:20:56 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
7ba896f
Parents:
a0635eb
Message:

edited permissions

Location:
app/Models
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • app/Models/Permission.php

    ra0635eb r53d99ce  
    99    protected $table = "permissions";
    1010
     11    protected $fillable = ["name"];
     12
    1113    public function role() {
    1214        return $this->belongsToMany(Role::class, "roles_permissions");
  • app/Models/Role.php

    ra0635eb r53d99ce  
    99    protected $table = "roles";
    1010
     11    protected $fillable = ["name"];
     12
    1113    public function user() {
    1214        return $this->hasMany(User::class);
Note: See TracChangeset for help on using the changeset viewer.