public_path

The public_path function returns the fully qualified path to your application's public directory. You may also use the public_path function to generate a fully qualified path to a given file within the public directory:
<?php $path = public_path();

$path = public_path('css/app.css');
<?php         app('livewire')->provide(function() {

            $this->publishes(

                [

                    __DIR__.'/../../../dist' => public_path('vendor/livewire'),

                ],

                'livewire:assets',

            );
<?php         $assetWarning = null;




        if (! file_exists(public_path('vendor/livewire/manifest.json'))) {

            return [$url, $assetWarning];

        }
<?php             return [$url, $assetWarning];

        }



        $publishedManifest = json_decode(file_get_contents(public_path('vendor/livewire/manifest.json')), true);

        $versionedFileName = $publishedManifest['/livewire.js'];



        $fileName = config('app.debug') ? '/livewire.js' : '/livewire.min.js';
<?php     'links' => [

        public_path('storage') => storage_path('app/public'),

    ],



];
<?php     protected function startProcess($hasEnvironment)

    {

        $process = new Process($this->serverCommand(), public_path(), collect($_ENV)->mapWithKeys(function ($value, $key) use ($hasEnvironment) {

            if ($this->option('no-reload') || ! $hasEnvironment) {

                return [$key => $value];

            }
<?php     protected function links()

    {

        return $this->laravel['config']['filesystems.links'] ??

               [public_path('storage') => storage_path('app/public')];

    }
<?php     protected function links()

    {

        return $this->laravel['config']['filesystems.links'] ??

               [public_path('storage') => storage_path('app/public')];

    }

}
<?php             $manifestDirectory = "/{$manifestDirectory}";

        }



        if (is_file(public_path($manifestDirectory.'/hot'))) {

            $url = rtrim(file_get_contents(public_path($manifestDirectory.'/hot')));



            $customUrl = app('config')->get('app.mix_hot_proxy_url');
<?php         }



        if (is_file(public_path($manifestDirectory.'/hot'))) {

            $url = rtrim(file_get_contents(public_path($manifestDirectory.'/hot')));



            $customUrl = app('config')->get('app.mix_hot_proxy_url');
<?php             return new HtmlString("//localhost:8080{$path}");

        }



        $manifestPath = public_path($manifestDirectory.'/mix-manifest.json');



        if (! isset($manifests[$manifestPath])) {

            if (! is_file($manifestPath)) {
<?php     public function hotFile()

    {

        return $this->hotFile ?? public_path('/hot');

    }
<?php         $chunk = $this->chunk($this->manifest($buildDirectory), $asset);



        $path = public_path($buildDirectory.'/'.$chunk['file']);



        if (! is_file($path) || ! file_exists($path)) {

            throw new Exception("Unable to locate file from Vite manifest: {$path}.");
<?php     protected function manifestPath($buildDirectory)

    {

        return public_path($buildDirectory.'/'.$this->manifestFilename);

    }
<?php     {

        app()->usePublicPath(__DIR__);



        $path = public_path(Str::finish($directory, '/').'hot');
<?php     {

        app()->usePublicPath(__DIR__);



        $path = public_path(Str::finish($directory, '/').'mix-manifest.json');



        touch($path);