mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-03 03:05:01 +02:00
feat: action logs (#702)
This commit is contained in:
@@ -4,6 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace App\Filament\Resources\Base;
|
||||
|
||||
use App\Models\Admin\ActionLog;
|
||||
use Filament\Resources\Pages\CreateRecord;
|
||||
|
||||
/**
|
||||
@@ -11,5 +12,13 @@ use Filament\Resources\Pages\CreateRecord;
|
||||
*/
|
||||
abstract class BaseCreateResource extends CreateRecord
|
||||
{
|
||||
|
||||
/**
|
||||
* Run after the record is created.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function afterCreate(): void
|
||||
{
|
||||
ActionLog::modelCreated($this->getRecord());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user