Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Make a string's first character uppercase
<?php ucfirst(string $string): string
<?php         $beforePaginatorMethod = 'updatingPaginators';

        $afterPaginatorMethod = 'updatedPaginators';



        $beforeMethod = 'updating' . ucfirst(Str::camel($pageName));

        $afterMethod = 'updated' . ucfirst(Str::camel($pageName));



        if (method_exists($this, $beforePaginatorMethod)) {
<?php         $afterPaginatorMethod = 'updatedPaginators';



        $beforeMethod = 'updating' . ucfirst(Str::camel($pageName));

        $afterMethod = 'updated' . ucfirst(Str::camel($pageName));



        if (method_exists($this, $beforePaginatorMethod)) {

            $this->{$beforePaginatorMethod}($page, $pageName);