Changeset fb32aad for app/Models/RolesPermissions.php
- Timestamp:
- 10/23/21 19:32:48 (3 years ago)
- Branches:
- develop, master
- Children:
- d7aa044
- Parents:
- 7ba896f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Models/RolesPermissions.php
r7ba896f rfb32aad 12 12 protected $fillable = ["role_id", "permission_id"]; 13 13 14 public function permission() { 15 return $this->hasMany(Permission::class, "permissions"); 16 } 14 17 18 public function role() { 19 return $this->hasMany(Role::class, "roles"); 20 } 15 21 }
Note:
See TracChangeset
for help on using the changeset viewer.