private function rebindModels()
    {
        $config   = $this->config();
        $bindings = [
            [
                'abstract' => \Arcanesoft\Contracts\Auth\Models\User::class,
                'concrete' => $config->get('arcanesoft.auth.users.model'),
            ],[
                'abstract' => \Arcanesoft\Contracts\Auth\Models\Role::class,
                'concrete' => $config->get('arcanesoft.auth.roles.model'),
            ],[
                'abstract' => \Arcanesoft\Contracts\Auth\Models\Permission::class,
                'concrete' => $config->get('arcanesoft.auth.permissions.model'),
            ],[
                'abstract' => \Arcanesoft\Contracts\Auth\Models\PermissionsGroup::class,
                'concrete' => $config->get('arcanesoft.auth.permissions-groups.model'),
            ],
        ];

        foreach ($bindings as $binding) {
            $this->bind($binding['abstract'], $binding['concrete']);
        }
    }
private function rebindModels()
    {
        $config   = $this->config();
        $bindings = [
            [
                'abstract' => \Arcanesoft\Contracts\Auth\Models\User::class,
                'concrete' => $config->get('arcanesoft.auth.users.model'),
            ],[
                'abstract' => \Arcanesoft\Contracts\Auth\Models\Role::class,
                'concrete' => $config->get('arcanesoft.auth.roles.model'),
            ],[
                'abstract' => \Arcanesoft\Contracts\Auth\Models\Permission::class,
                'concrete' => $config->get('arcanesoft.auth.permissions.model'),
            ],[
                'abstract' => \Arcanesoft\Contracts\Auth\Models\PermissionsGroup::class,
                'concrete' => $config->get('arcanesoft.auth.permissions-groups.model'),
            ],
        ];

        foreach ($bindings as $binding) {
            $this->bind($binding['abstract'], $binding['concrete']);
        }
    }
private function rebindModels ( ) { $ config = $ this -> config ( ) ; $ bindings = [ [ 'abstract' => \ Arcanesoft \ Contracts \ Auth \ Models \ User :: class , 'concrete' => $ config -> get ( 'arcanesoft.auth.users.model' ) , ] , [ 'abstract' => \ Arcanesoft \ Contracts \ Auth \ Models \ Role :: class , 'concrete' => $ config -> get ( 'arcanesoft.auth.roles.model' ) , ] , [ 'abstract' => \ Arcanesoft \ Contracts \ Auth \ Models \ Permission :: class , 'concrete' => $ config -> get ( 'arcanesoft.auth.permissions.model' ) , ] , [ 'abstract' => \ Arcanesoft \ Contracts \ Auth \ Models \ PermissionsGroup :: class , 'concrete' => $ config -> get ( 'arcanesoft.auth.permissions-groups.model' ) , ] , ] ; foreach ( $ bindings as $ binding ) { $ this -> bind ( $ binding [ 'abstract' ] , $ binding [ 'concrete' ] ) ; } }
Rebind the auth models.
Rebind the auth models .