call_user_func

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Call the callback given by the first parameter
call_user_func(callable $callbackmixed ...$args): mixed
    protected function guessPolicyName($class)

    {

        if (
$this->guessPolicyNamesUsingCallback) {

            return 
Arr::wrap(call_user_func($this->guessPolicyNamesUsingCallback$class));

        }



        
$classDirname str_replace('/''\\'dirname(str_replace('\\''/'$class)));
    protected function resolveUser()

    {

        return 
call_user_func($this->userResolver);

    }
    protected function registerUserResolver()

    {

        
$this->app->bind(AuthenticatableContract::class, fn ($app) => call_user_func($app['auth']->userResolver()));

    }
    protected function registerAccessGate()

    {

        
$this->app->singleton(GateContract::class, function ($app) {

            return new 
Gate($app, fn () => call_user_func($app['auth']->userResolver()));

        });

    }
    {

        
$this->app->rebinding('request', function ($app$request) {

            
$request->setUserResolver(function ($guard null) use ($app) {

                return 
call_user_func($app['auth']->userResolver(), $guard);

            });

        });

    }
        }



        if (isset(
$this->customProviderCreators[$driver = ($config['driver'] ?? null)])) {

            return 
call_user_func(

                
$this->customProviderCreators[$driver], $this->app$config

            
);

        }



        return match (
$driver) {
    public function toMail($notifiable)

    {

        if (static::
$toMailCallback) {

            return 
call_user_func(static::$toMailCallback$notifiable$this->token);

        }



        return 
$this->buildMailMessage($this->resetUrl($notifiable));
    protected function resetUrl($notifiable)

    {

        if (static::
$createUrlCallback) {

            return 
call_user_func(static::$createUrlCallback$notifiable$this->token);

        }



        return 
url(route('password.reset', [
        $verificationUrl $this->verificationUrl($notifiable);



        if (static::
$toMailCallback) {

            return 
call_user_func(static::$toMailCallback$notifiable$verificationUrl);

        }



        return 
$this->buildMailMessage($verificationUrl);
    protected function verificationUrl($notifiable)

    {

        if (static::
$createUrlCallback) {

            return 
call_user_func(static::$createUrlCallback$notifiable);

        }



        return 
URL::temporarySignedRoute(
            return $this->user;

        }



        return 
$this->user call_user_func(

            
$this->callback$this->request$this->getProvider()

        );

    }
        $binder $this->binder();



        if (
$binder && $binder->getBindingCallback($key)) {

            return 
call_user_func($binder->getBindingCallback($key), $value);

        }



        return 
$value;
    {

        
$connection $command->connection ?? null;



        
$queue call_user_func($this->queueResolver$connection);



        if (! 
$queue instanceof Queue) {

            throw new 
RuntimeException('Queue resolver did not return a Queue implementation.');
    {

        return 
is_null(static::$terminalWidthResolver)

            ? (new 
Terminal)->getWidth()

            : 
call_user_func(static::$terminalWidthResolver);

    }
    public function callMethodBinding($method$instance)

    {

        return 
call_user_func($this->methodBindings[$method], $instance$this);

    }