ltrim

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Strip whitespace (or other characters) from the beginning of a string
<?php ltrim(string $string, string $characters = " \n\r\t\v\x00"): string
<?php             $this->handleViewException($e, $obLevel);

        }



        return ltrim(ob_get_clean());

    }
<?php     protected function formatPath($path)

    {

        return '/' . ltrim($path, '/');

    }



    protected function getApplicablePersistentMiddleware($request)
<?php     public function createModel()

    {

        $class = '\\'.ltrim($this->model, '\\');



        return new $class;

    }
<?php     protected function qualifyClass($name)

    {

        $name = ltrim($name, '\\/');



        $name = str_replace('/', '\\', $name);
<?php     protected function qualifyModel(string $model)

    {

        $model = ltrim($model, '\\/');



        $model = str_replace('/', '\\', $model);
<?php                 $output = $execution->getIncrementalOutput().

                    $execution->getIncrementalErrorOutput();



                $this->output->write(ltrim($output, "\n"));



                if (! $execution->isRunning()) {

                    unset($executions[$key]);
<?php             return $model;

        }



        $model = ltrim($model, '\\/');



        $model = str_replace('/', '\\', $model);
<?php             $sql .= ' '.$this->compileOffset($query, $query->unionOffset);

        }



        return ltrim($sql);

    }
<?php     protected function concatPathToUrl($url, $path)

    {

        return rtrim($url, '/').'/'.ltrim($path, '/');

    }
<?php             if (empty($path)) {

                unset($paths[$index]);

            } else {

                $paths[$index] = DIRECTORY_SEPARATOR.ltrim($path, DIRECTORY_SEPARATOR);

            }

        }
<?php         $path = Str::finish($this->option('path') ?: dirname($this->laravel->environmentFilePath()), DIRECTORY_SEPARATOR);



        $outputFile = $this->option('filename') ?: ('.env'.($this->option('env') ? '.'.$this->option('env') : ''));

        $outputFile = ltrim($outputFile, DIRECTORY_SEPARATOR);



        return $path.$outputFile;

    }
<?php         ];



        foreach ($stubs as $from => $to) {

            $to = $langPath.DIRECTORY_SEPARATOR.ltrim($to, DIRECTORY_SEPARATOR);



            if ((! $this->option('existing') && (! file_exists($to) || $this->option('force')))

                || ($this->option('existing') && file_exists($to))) {
<?php             'method' => implode('|', $route->methods()),

            'uri' => $route->uri(),

            'name' => $route->getName(),

            'action' => ltrim($route->getActionName(), '\\'),

            'middleware' => $this->getMiddleware($route),

            'vendor' => $this->isVendorRoute($route),

        ]);
<?php             fn ($route) => array_merge($route, [

                'action' => $this->formatActionForCli($route),

                'method' => $route['method'] == 'GET|HEAD|POST|PUT|PATCH|DELETE|OPTIONS' ? 'ANY' : $route['method'],

                'uri' => $route['domain'] ? ($route['domain'].'/'.ltrim($route['uri'], '/')) : $route['uri'],

            ]),

        );
<?php         $this->laravel['events']->dispatch($event = new PublishingStubs($stubs));



        foreach ($event->stubs as $from => $to) {

            $to = $stubsPath.DIRECTORY_SEPARATOR.ltrim($to, DIRECTORY_SEPARATOR);



            if ((! $this->option('existing') && (! file_exists($to) || $this->option('force')))

                || ($this->option('existing') && file_exists($to))) {