*/ class VideoScriptForceDeleting extends BaseEvent implements RemoveFromStorageEvent { /** * Create a new event instance. * * @param VideoScript $script */ public function __construct(VideoScript $script) { parent::__construct($script); } /** * Get the model that has fired this event. * * @return VideoScript */ public function getModel(): VideoScript { return $this->model; } /** * Remove the image from the bucket. * * @return void */ public function removeFromStorage(): void { $action = new DeleteScriptAction($this->getModel()); $action->handle(); } }