src/Defender/Traits/HasDefender.php
protected function getFreshRolesPermissions()
    {
        $roles = $this->roles()->get(['id'])->pluck('id')->toArray();

        return app('defender.permission')->getByRoles($roles);
    }
protected function getFreshRolesPermissions()
    {
        $roles = $this->roles()->get(['id'])->pluck('id')->toArray();

        return app('defender.permission')->getByRoles($roles);
    }
protected function getFreshRolesPermissions ( ) { $ roles = $ this -> roles ( ) -> get ( [ 'id' ] ) -> pluck ( 'id' ) -> toArray ( ) ; return app ( 'defender.permission' ) -> getByRoles ( $ roles ) ; }
Get fresh permissions from database based on roles.

@return \Illuminate\Support\Collection
Get fresh permissions from database based on roles .