22 lines
533 B
PHP
22 lines
533 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\BlogResource\Pages;
|
|
|
|
use App\Filament\Resources\BlogResource;
|
|
use Filament\Actions;
|
|
use Filament\Notifications\Notification;
|
|
use Filament\Resources\Pages\CreateRecord;
|
|
|
|
class CreateBlog extends CreateRecord
|
|
{
|
|
protected static string $resource = BlogResource::class;
|
|
|
|
protected function getCreatedNotification(): ?Notification
|
|
{
|
|
return Notification::make()
|
|
->success()
|
|
->title('Post created')
|
|
->body('Post created successfully');
|
|
}
|
|
}
|