public function registerPolicies(GateContract $gate)
    {
        $forumPolicy = config('forum.integration.policies.forum');
        foreach (get_class_methods(new $forumPolicy()) as $method) {
            $gate->define($method, "{$forumPolicy}@{$method}");
        }

        foreach (config('forum.integration.policies.model') as $model => $policy) {
            $gate->policy($model, $policy);
        }
    }
public function registerPolicies(GateContract $gate)
    {
        $forumPolicy = config('forum.integration.policies.forum');
        foreach (get_class_methods(new $forumPolicy()) as $method) {
            $gate->define($method, "{$forumPolicy}@{$method}");
        }

        foreach (config('forum.integration.policies.model') as $model => $policy) {
            $gate->policy($model, $policy);
        }
    }
public function registerPolicies ( GateContract $ gate ) { $ forumPolicy = config ( 'forum.integration.policies.forum' ) ; foreach ( get_class_methods ( new $ forumPolicy ( ) ) as $ method ) { $ gate -> define ( $ method , "{$forumPolicy}@{$method}" ) ; } foreach ( config ( 'forum.integration.policies.model' ) as $ model => $ policy ) { $ gate -> policy ( $ model , $ policy ) ; } }
Register the package policies.

@param  GateContract  $gate
@return void
Register the package policies .