28 lines
617 B
PHP
28 lines
617 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\StudentGrowthResource\Pages;
|
|
|
|
use Filament\Actions;
|
|
use Illuminate\Support\Facades\Auth;
|
|
use Filament\Resources\Pages\EditRecord;
|
|
use App\Filament\Resources\StudentGrowthResource;
|
|
|
|
class EditStudentGrowth extends EditRecord
|
|
{
|
|
protected static string $resource = StudentGrowthResource::class;
|
|
|
|
protected function mutateFormDataBeforeSave(array $data): array
|
|
{
|
|
$data['user_id'] = Auth::id();
|
|
return $data;
|
|
}
|
|
|
|
|
|
protected function getHeaderActions(): array
|
|
{
|
|
return [
|
|
Actions\DeleteAction::make(),
|
|
];
|
|
}
|
|
}
|