custom page edit: unable to find component

I have followed the instructions to build a custom edit page to edit some specific fields of a record in its simplest way:
<?php

namespace App\Filament\Investigador\Resources\Sica\ProyectoResource\Pages;

use App\Filament\Investigador\Resources\Sica\ProyectoResource;
use Filament\Actions;
use Filament\Resources\Pages\EditRecord;

class EditDates extends EditRecord
{
protected static string $resource = ProyectoResource::class;
}
<?php

namespace App\Filament\Investigador\Resources\Sica\ProyectoResource\Pages;

use App\Filament\Investigador\Resources\Sica\ProyectoResource;
use Filament\Actions;
use Filament\Resources\Pages\EditRecord;

class EditDates extends EditRecord
{
protected static string $resource = ProyectoResource::class;
}
And registered that page in the resource:
public static function getPages(): array
{
return [
'fechas'=>Pages\EditDates::route('/{record}/fechas'),
];
}
public static function getPages(): array
{
return [
'fechas'=>Pages\EditDates::route('/{record}/fechas'),
];
}
When I hit on the save or submit button, I get the following error:
Livewire\Exceptions\ComponentNotFoundException: Unable to find component: [app.filament.investigador.resources.sica.proyecto-resource.pages.edit-dates]
When I check the route list by typing php artisan route:list --name=filament:
GET|HEAD path/to/proyectos/{record}/fechas filament.investigador.resources.sica.proyectos.fechas › App\Filament…
GET|HEAD path/to/proyectos/{record}/fechas filament.investigador.resources.sica.proyectos.fechas › App\Filament…
it is indeed listed. Then how do I fix it? any ideas? What am I missing?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server