The app function returns the service container instance:
$container app();
        foreach ($mutators as $mutator) {

            if (
is_iterable($data)) {

                foreach (
$data as $key => $value) {

                    
$data[$key] = app($mutator)->__invoke($value);

                }

            } else {

                
$data app($mutator)->__invoke($data);
                    $data[$key] = app($mutator)->__invoke($value);

                }

            } else {

                
$data app($mutator)->__invoke($data);

            }

        }
    public function __invoke($string)

    {

        if (
app()->has('path.base')) {

            
$string str_replace(base_path().'/'''$string);

        }
    public function can($abilities$arguments = [])

    {

        return 
app(Gate::class)->forUser($this)->check($abilities$arguments);

    }
    public function canAny($abilities$arguments = [])

    {

        return 
app(Gate::class)->forUser($this)->any($abilities$arguments);

    }
    {

        [
$ability$arguments] = $this->parseAbilityAndArguments($ability$arguments);



        return 
app(Gate::class)->authorize($ability$arguments);

    }
    {

        [
$ability$arguments] = $this->parseAbilityAndArguments($ability$arguments);



        return 
app(Gate::class)->forUser($user)->authorize($ability$arguments);

    }
    public static function dispatchSync(...$arguments)

    {

        return 
app(Dispatcher::class)->dispatchSync(new static(...$arguments));

    }
    public static function dispatchNow(...$arguments)

    {

        return 
app(Dispatcher::class)->dispatchNow(new static(...$arguments));

    }
    public static function dispatchAfterResponse(...$arguments)

    {

        return 
app(Dispatcher::class)->dispatchAfterResponse(new static(...$arguments));

    }
    protected function dispatch($job)

    {

        return 
app(Dispatcher::class)->dispatch($job);

    }
    public function dispatchNow($job)

    {

        return 
app(Dispatcher::class)->dispatchNow($job);

    }
    public function dispatchSync($job)

    {

        return 
app(Dispatcher::class)->dispatchSync($job);

    }

}
        $firstJob->chain($this->chain);

        
$firstJob->chainCatchCallbacks $this->catchCallbacks();



        return 
app(Dispatcher::class)->dispatch($firstJob);

    }

}
        if (! $this->shouldDispatch()) {

            return;

        } elseif (
$this->afterResponse) {

            
app(Dispatcher::class)->dispatchAfterResponse($this->job);

        } else {

            
app(Dispatcher::class)->dispatch($this->job);

        }