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         'cache' => false,

        'cache_path' => public_path('img'),




        |--------------------------------------------------------------------------
<?php         'full' => [

            'driver' => 'file',

            'path' => public_path('static'),

            'lock_hold_length' => 0,

        ],
<?php         $this->path = $path;

        $this->params = $params;



        $this->server->setSource(new Filesystem(new Local(public_path())));

        $this->server->setSourcePathPrefix('/');

        $this->server->setCachePathPrefix('paths');
<?php             $path = $this->asset->path();

            $mime = $this->asset->mimeType();

        } else {

            $path = public_path($this->path);

            throw_unless(File::exists($path), new FlysystemFileNotFoundException($path));

            $mime = File::mimeType($path);

        }
<?php         $publishables = collect($this->publishables)

            ->mapWithKeys(function ($destination, $origin) use ($package) {

                return [$origin => public_path("vendor/{$package}/{$destination}")];

            });



        if ($publishables->isNotEmpty()) {
<?php         $filename = pathinfo($path, PATHINFO_FILENAME);



        $this->publishes([

            $path => public_path("vendor/{$name}/js/{$filename}.js"),

        ], $this->getAddon()->slug());



        Statamic::script($name, $filename);
<?php         $filename = pathinfo($path, PATHINFO_FILENAME);



        $this->publishes([

            $path => public_path("vendor/{$name}/css/{$filename}.css"),

        ], $this->getAddon()->slug());



        Statamic::style($name, $filename);
<?php         ], 'statamic');



        $this->publishes([

            "{$this->root}/resources/dist" => public_path('vendor/statamic/cp'),

        ], 'statamic-cp');



        $this->loadTranslationsFrom("{$this->root}/resources/lang", 'statamic');
<?php         $cascade = [

            resource_path('svg'),

            resource_path(),

            public_path('svg'),

            public_path(),

        ];
<?php             resource_path('svg'),

            resource_path(),

            public_path('svg'),

            public_path(),

        ];



        $svg = null;
<?php         );



        if ($this->params->bool('cache_bust')) {

            throw_if(! File::exists($path = public_path($path)), new \Exception("File $path does not exist."));

            $url .= '?v='.File::lastModified($path);

        }
<?php     private function getManifestAndMethod()

    {

        if ($manifest = File::get(public_path('mix-manifest.json'))) {

            return [$manifest, 'mix'];

        }
<?php             return [$manifest, 'mix'];

        }



        if ($manifest = File::get(public_path('build/rev-manifest.json'))) {

            return [$manifest, 'elixir'];

        }
<?php         'bobsled_pics' => [

            'driver' => 'local',

            'root' => public_path('assets'),

            'url' => '/assets',

            'visibility' => 'public',

        ],
<?php     'links' => [

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

    ],



];