Вход Регистрация
Файл: gapps/vendor/laravel/framework/src/Illuminate/Foundation/Bus/DispatchesJobs.php
Строк: 20
<?php

namespace IlluminateFoundationBus;

use 
IlluminateContractsBusDispatcher;

trait 
DispatchesJobs
{
    
/**
     * Dispatch a job to its appropriate handler.
     *
     * @param  mixed  $job
     * @return mixed
     */
    
protected function dispatch($job)
    {
        return 
app(Dispatcher::class)->dispatch($job);
    }

    
/**
     * Dispatch a command to its appropriate handler in the current process.
     *
     * @param  mixed  $job
     * @return mixed
     */
    
public function dispatchNow($job)
    {
        return 
app(Dispatcher::class)->dispatchNow($job);
    }
}
Онлайн: 1
Реклама