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:
$path public_path();

$path public_path('css/app.css');
    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];

            }
    protected function links()

    {

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

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

    }
            $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');
        }



        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');
            return new HtmlString("//localhost:8080{$path}");

        }



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



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

            if (! 
is_file($manifestPath)) {
        $entrypoints collect($entrypoints);

        
$buildDirectory Str::start($buildDirectory'/');



        if (
is_file(public_path('/hot'))) {

            
$url rtrim(file_get_contents(public_path('/hot')));



            return new 
HtmlString(
        $buildDirectory Str::start($buildDirectory'/');



        if (
is_file(public_path('/hot'))) {

            
$url rtrim(file_get_contents(public_path('/hot')));



            return new 
HtmlString(

                
$entrypoints
            );

        }



        
$manifestPath public_path($buildDirectory.'/manifest.json');



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

            if (! 
is_file($manifestPath)) {
    public function reactRefresh()

    {

        if (! 
is_file(public_path('/hot'))) {

            return;

        }
            return;

        }



        
$url rtrim(file_get_contents(public_path('/hot')));



        return new 
HtmlString(

            
sprintf(
            return __DIR__;

        });



        
$path public_path(Str::finish($directory'/').'hot');
            return __DIR__;

        });



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



        
touch($path);
    {

        
app()->singleton('path.public', fn () => __DIR__);



        if (! 
file_exists(public_path('build'))) {

            
mkdir(public_path('build'));

        }
        app()->singleton('path.public', fn () => __DIR__);



        if (! 
file_exists(public_path('build'))) {

            
mkdir(public_path('build'));

        }



        
$manifest json_encode([
            ],

        ], 
JSON_PRETTY_PRINT JSON_UNESCAPED_SLASHES);



        
file_put_contents(public_path('build/manifest.json'), $manifest);

    }



    protected function 
cleanViteManifest()