<?php

namespace App\Filament\Admin\Resources\SectionFourRights\Pages;

use App\Filament\Admin\Resources\SectionFourRights\SectionFourRightResource;
use Filament\Resources\Pages\CreateRecord;

class CreateSectionFourRight extends CreateRecord
{
    protected static string $resource = SectionFourRightResource::class;

    protected function getRedirectUrl(): string
    {
        // Esto redirige a la página de listado
        return $this->getResource()::getUrl('index');
    }
}
