<?php

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

use App\Filament\Admin\Resources\BannerHomes\BannerHomeResource;
use Filament\Resources\Pages\CreateRecord;

class CreateBannerHome extends CreateRecord
{
    protected static string $resource = BannerHomeResource::class;

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