/** * Fetch the collection of site permissions. * * @return \Illuminate\Database\Eloquent\Collection */ protected function getPermissions() { if (!Schema::hasTable('roles')) { return new Collection(); } return Permission::with('roles')->get(); }