Changeset 53d99ce
- Timestamp:
- 10/23/21 19:20:56 (3 years ago)
- Branches:
- develop, master
- Children:
- 7ba896f
- Parents:
- a0635eb
- Files:
-
- 3 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); -
database/seeders/DatabaseSeeder.php
ra0635eb r53d99ce 14 14 public function run() 15 15 { 16 $this->call(PermissionsTableSeeder::class); 16 17 $this->call(RolesTableSeeder::class); 17 $this->call(PermissionsTableSeeder::class);18 18 $this->call(RolesPermissionsTableSeeder::class); 19 19 $this->call(UsersTableSeeder::class);
Note:
See TracChangeset
for help on using the changeset viewer.