ucfirst

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Make a string's first character uppercase
ucfirst(string $string): string
            return $this->callCustomCreator($name$config);

        }



        
$driverMethod 'create'.ucfirst($config['driver']).'Driver';



        if (
method_exists($this$driverMethod)) {

            return 
$this->{$driverMethod}($name$config);
            return $this->callCustomCreator($config);

        }



        
$driverMethod 'create'.ucfirst($config['driver']).'Driver';



        if (! 
method_exists($this$driverMethod)) {

            throw new 
InvalidArgumentException("Driver [{$config['driver']}] is not supported.");
        if (isset($this->customCreators[$config['driver']])) {

            return 
$this->callCustomCreator($config);

        } else {

            
$driverMethod 'create'.ucfirst($config['driver']).'Driver';



            if (
method_exists($this$driverMethod)) {

                return 
$this->{$driverMethod}($config);
    public function __call($method$parameters)

    {

        
$component '\Illuminate\Console\View\Components\\'.ucfirst($method);



        
throw_unless(class_exists($component), new InvalidArgumentException(sprintf(

            
'Console component [%s] not found.'$method
    public function commandArguments(array $connection)

    {

        
$driver ucfirst($connection['driver']);



        return 
$this->{"get{$driver}Arguments"}($connection);

    }
    public function commandEnvironment(array $connection)

    {

        
$driver ucfirst($connection['driver']);



        if (
method_exists($this"get{$driver}Environment")) {

            return 
$this->{"get{$driver}Environment"}($connection);
    public function broadcastAs()

    {

        
$default class_basename($this->model).ucfirst($this->event);



        return 
method_exists($this->model'broadcastAs')

                ? (
$this->model->broadcastAs($this->event) ?: $default)
    public function hasNamedScope($scope)

    {

        return 
method_exists($this'scope'.ucfirst($scope));

    }
    public function callNamedScope($scope, array $parameters = [])

    {

        return 
$this->{'scope'.ucfirst($scope)}(...$parameters);

    }
        foreach ($this->selectComponents as $component) {

            if (isset(
$query->$component)) {

                
$method 'compile'.ucfirst($component);



                
$sql[$component] = $this->$method($query$query->$component);

            }
        $this->ensureCommandsAreValid($connection);



        foreach (
$this->commands as $command) {

            
$method 'compile'.ucfirst($command->name);



            if (
method_exists($grammar$method) || $grammar::hasMacro($method)) {

                if (! 
is_null($sql $grammar->$method($this$command$connection))) {
            foreach ($fluent->getAttributes() as $key => $value) {

                if (! 
is_null($option = static::mapFluentOptionToDoctrine($key))) {

                    if (
method_exists($column$method 'set'.ucfirst($option))) {

                        
$column->{$method}(static::mapFluentValueToDoctrine($option$value));

                        continue;

                    }
    protected function getType(Fluent $column)

    {

        return 
$this->{'type'.ucfirst($column->type)}($column);

    }
            return $this->callCustomCreator($config);

        }



        
$driverMethod 'create'.ucfirst($name).'Driver';



        if (! 
method_exists($this$driverMethod)) {

            throw new 
InvalidArgumentException("Driver [{$name}] is not supported.");
        $class trim(Str::replaceFirst($basePath''$file->getRealPath()), DIRECTORY_SEPARATOR);



        return 
str_replace(

            [
DIRECTORY_SEPARATORucfirst(basename(app()->path())).'\\'],

            [
'\\'app()->getNamespace()],

            
ucfirst(Str::replaceLast('.php'''$class))

        );