PHP 8.3.31
Preview: Dispatchable.php Size: 1.21 KB
/home/getspomw/royalsquad.us/vendor/laravel/framework/src/Illuminate/Foundation/Events/Dispatchable.php

<?php

namespace Illuminate\Foundation\Events;

trait Dispatchable
{
    /**
     * Dispatch the event with the given arguments.
     *
     * @return mixed
     */
    public static function dispatch()
    {
        return event(new static(...func_get_args()));
    }

    /**
     * Dispatch the event with the given arguments if the given truth test passes.
     *
     * @param  bool  $boolean
     * @param  mixed  ...$arguments
     * @return mixed
     */
    public static function dispatchIf($boolean, ...$arguments)
    {
        if ($boolean) {
            return event(new static(...$arguments));
        }
    }

    /**
     * Dispatch the event with the given arguments unless the given truth test passes.
     *
     * @param  bool  $boolean
     * @param  mixed  ...$arguments
     * @return mixed
     */
    public static function dispatchUnless($boolean, ...$arguments)
    {
        if (! $boolean) {
            return event(new static(...$arguments));
        }
    }

    /**
     * Broadcast the event with the given arguments.
     *
     * @return \Illuminate\Broadcasting\PendingBroadcast
     */
    public static function broadcast()
    {
        return broadcast(new static(...func_get_args()));
    }
}

Directory Contents

Dirs: 0 × Files: 9

Name Size Perms Modified Actions
82 B lrw-rw-rw- 2025-09-17 06:52:55
Edit Download
3.43 KB lrw-rw-rw- 2025-09-17 06:52:55
Edit Download
1.21 KB lrw-rw-rw- 2025-09-17 06:52:55
Edit Download
354 B lrw-rw-rw- 2025-09-17 06:52:55
Edit Download
89 B lrw-rw-rw- 2025-09-17 06:52:55
Edit Download
88 B lrw-rw-rw- 2025-09-17 06:52:55
Edit Download
660 B lrw-rw-rw- 2025-09-17 06:52:55
Edit Download
77 B lrw-rw-rw- 2025-09-17 06:52:55
Edit Download
544 B lrw-rw-rw- 2025-09-17 06:52:55
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).