Changeset 53d99ce


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

edited permissions

Files:
3 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);
  • database/seeders/DatabaseSeeder.php

    ra0635eb r53d99ce  
    1414    public function run()
    1515    {
     16        $this->call(PermissionsTableSeeder::class);
    1617        $this->call(RolesTableSeeder::class);
    17         $this->call(PermissionsTableSeeder::class);
    1818        $this->call(RolesPermissionsTableSeeder::class);
    1919        $this->call(UsersTableSeeder::class);
Note: See TracChangeset for help on using the changeset viewer.