chore: update composer dependencies to include phppresentation chore: update composer.lock after adding phppresentation feat: create categories migration for category management feat: create templates migration for template storage feat: create template generations migration for tracking template usage feat: create template keys migration for template customization feat: create notifications migration for user notifications feat: update API routes for categories, templates, and user profile management docs: update API documentation to include new endpoints for profile and wallet
23 lines
513 B
PHP
23 lines
513 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Templates\Pages;
|
|
|
|
use App\Filament\Resources\Templates\TemplateResource;
|
|
use Filament\Resources\Pages\CreateRecord;
|
|
|
|
class CreateTemplate extends CreateRecord
|
|
{
|
|
protected static string $resource = TemplateResource::class;
|
|
|
|
/**
|
|
* @param array<string, mixed> $data
|
|
* @return array<string, mixed>
|
|
*/
|
|
protected function mutateFormDataBeforeCreate(array $data): array
|
|
{
|
|
$data['created_by'] = auth()->id();
|
|
|
|
return $data;
|
|
}
|
|
}
|