Changeset 53d99ce for app/Models
- Timestamp:
- 10/23/21 19:20:56 (3 years ago)
- Branches:
- develop, master
- Children:
- 7ba896f
- Parents:
- a0635eb
- Location:
- app/Models
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Models/Permission.php
ra0635eb r53d99ce 9 9 protected $table = "permissions"; 10 10 11 protected $fillable = ["name"]; 12 11 13 public function role() { 12 14 return $this->belongsToMany(Role::class, "roles_permissions"); -
app/Models/Role.php
ra0635eb r53d99ce 9 9 protected $table = "roles"; 10 10 11 protected $fillable = ["name"]; 12 11 13 public function user() { 12 14 return $this->hasMany(User::class);
Note:
See TracChangeset
for help on using the changeset viewer.