public function afterConstruct()
    {
        if (! isset($this->attributes['permissions'])) {
            $this->permissions = $this->factory->create(RolePermission::class);
        }
    }
public function afterConstruct()
    {
        if (! isset($this->attributes['permissions'])) {
            $this->permissions = $this->factory->create(RolePermission::class);
        }
    }
public function afterConstruct ( ) { if ( ! isset ( $ this -> attributes [ 'permissions' ] ) ) { $ this -> permissions = $ this -> factory -> create ( RolePermission :: class ) ; } }
Runs extra construction tasks.

@return void
Runs extra construction tasks .