mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
29 lines
631 B
PHP
29 lines
631 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Filament\Actions\Storage\Wiki\Audio;
|
|
|
|
use App\Actions\Storage\Wiki\Audio\DeleteAudioAction as DeleteAudio;
|
|
use App\Filament\Actions\Storage\Base\DeleteAction;
|
|
use App\Models\BaseModel;
|
|
use App\Models\Wiki\Audio;
|
|
|
|
/**
|
|
* Class DeleteAudioAction.
|
|
*/
|
|
class DeleteAudioAction extends DeleteAction
|
|
{
|
|
/**
|
|
* Get the underlying storage action.
|
|
*
|
|
* @param Audio $audio
|
|
* @param array $fields
|
|
* @return DeleteAudio
|
|
*/
|
|
protected function storageAction(BaseModel $audio, array $fields): DeleteAudio
|
|
{
|
|
return new DeleteAudio($audio);
|
|
}
|
|
}
|