init
This commit is contained in:
236 files changed
+24692
No files matched your search
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Resources\Designs\Pages;
|
||||
|
||||
use App\Filament\Resources\Designs\DesignResource;
|
||||
use App\Support\Artwork;
|
||||
use Filament\Resources\Pages\CreateRecord;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class CreateDesign extends CreateRecord
|
||||
{
|
||||
protected static string $resource = DesignResource::class;
|
||||
|
||||
protected function handleRecordCreation(array $data): Model
|
||||
{
|
||||
$data['artwork_path'] = app(Artwork::class)->prepare($data['original_path']);
|
||||
|
||||
return parent::handleRecordCreation($data);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user