resource navigation
How to customize the notification message after updating a record on a custom edit page?
I got the following
when I hit save, i get the default message through a notification, but how do I override the notification message text?
I got the following
<?php
namespace App\Filament\Investigador\Resources\InfoSys\Proyectos\ProyectoResource\Pages;
use ...
class ConfirmarFechas extends EditRecord
{
protected static string $resource = ProyectoResource::class;
//Referencias:
//https://github.com/filamentphp/demo/blob/main/app/Filament/Resources/Shop/OrderResource.php
//https://demo.filamentphp.com/shop/orders/1/edit
public function form(Form $form): Form
{
return $form
->schema([
Group::make()
->schema([
Section::make(fn(Proyecto $proyecto) => $proyecto->titulo)
->schema(static::getDatesDetailsFormSchema())
->columns(3)
])
->columnSpan('full')
])
;
}
public static function getDatesDetailsFormSchema():array
{
return [
DatePicker::make('fecha_inicio')->label('Fecha de inicio')
->disabled()
,
DatePicker::make('fecha_termino')->label('Fecha de término')
->closeOnDateSelection()
->required()
->minDate(fn($get) => $get('fecha_inicio'))
,
];
}
}<?php
namespace App\Filament\Investigador\Resources\InfoSys\Proyectos\ProyectoResource\Pages;
use ...
class ConfirmarFechas extends EditRecord
{
protected static string $resource = ProyectoResource::class;
//Referencias:
//https://github.com/filamentphp/demo/blob/main/app/Filament/Resources/Shop/OrderResource.php
//https://demo.filamentphp.com/shop/orders/1/edit
public function form(Form $form): Form
{
return $form
->schema([
Group::make()
->schema([
Section::make(fn(Proyecto $proyecto) => $proyecto->titulo)
->schema(static::getDatesDetailsFormSchema())
->columns(3)
])
->columnSpan('full')
])
;
}
public static function getDatesDetailsFormSchema():array
{
return [
DatePicker::make('fecha_inicio')->label('Fecha de inicio')
->disabled()
,
DatePicker::make('fecha_termino')->label('Fecha de término')
->closeOnDateSelection()
->required()
->minDate(fn($get) => $get('fecha_inicio'))
,
];
}
}when I hit save, i get the default message through a notification, but how do I override the notification message text?