feat: initial project setup with Laravel 12 and Filament v4
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Filament\Resources\VisitResource\Pages;
|
||||
|
||||
use App\Filament\Resources\VisitResource;
|
||||
use Filament\Resources\Pages\CreateRecord;
|
||||
use Filament\Support\Enums\Width;
|
||||
|
||||
class CreateVisit extends CreateRecord
|
||||
{
|
||||
protected static string $resource = VisitResource::class;
|
||||
|
||||
protected Width|string|null $maxContentWidth = Width::SevenExtraLarge;
|
||||
|
||||
protected function getFormActions(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
protected function getRedirectUrl(): string
|
||||
{
|
||||
return static::getResource()::getUrl('index');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user