<?php

namespace App\Modules\Dashboard\Repositories;

use App\Modules\Admin\Tenancy\Models\Module;
use Illuminate\Database\Eloquent\Collection;

class DashboardModuleRepository
{
    /**
     * @return Collection<int, Module>
     */
    public function allActiveOrdered(): Collection
    {
        return Module::query()
            ->active()
            ->orderBy('name')
            ->get();
    }
}
