sispace/app/Filament/Resources/Master/Lecturers/Pages/CreateLecturer.php

37 lines
915 B
PHP

<?php
namespace App\Filament\Resources\Master\Lecturers\Pages;
use App\Filament\Actions\BackAction;
use App\Filament\Resources\Master\Lecturers\LecturerResource;
use App\Filament\Support\SystemNotification;
use Filament\Notifications\Notification;
use Filament\Resources\Pages\CreateRecord;
class CreateLecturer extends CreateRecord
{
protected static string $resource = LecturerResource::class;
protected ?string $heading = 'Tambah Dosen';
protected static ?string $title = 'Tambah Dosen';
protected function getHeaderActions(): array
{
return [
BackAction::make()
->url(ListLecturers::getUrl()),
];
}
protected function getRedirectUrl(): string
{
return $this->getResource()::getUrl('index');
}
protected function getCreatedNotification(): ?Notification
{
return SystemNotification::create();
}
}