20 lines
488 B
PHP
20 lines
488 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\StudentGrowthResource\Pages;
|
|
|
|
use Filament\Actions;
|
|
use Illuminate\Support\Facades\Auth;
|
|
use Filament\Resources\Pages\CreateRecord;
|
|
use App\Filament\Resources\StudentGrowthResource;
|
|
|
|
class CreateStudentGrowth extends CreateRecord
|
|
{
|
|
protected static string $resource = StudentGrowthResource::class;
|
|
|
|
protected function mutateFormDataBeforeCreate(array $data): array
|
|
{
|
|
$data['user_id'] = Auth::id();
|
|
return $data;
|
|
}
|
|
}
|