storage_path

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

$path = storage_path('app/file.txt');
<?php     |




    'submissions' => storage_path('forms'),



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

        resource_path('forms'),

        resource_path('users'),

        storage_path('forms'),

    ],
<?php     |




    'path' => storage_path('statamic/revisions'),



];
<?php     'drivers' => [



        'local' => [

            'path' => storage_path('statamic/search'),

        ],



        'algolia' => [
<?php         config(["filesystems.disks.{$disk}" => [

            'driver' => 'local',

            'root' => storage_path('statamic/dimensions-cache'),

        ]]);



        return Storage::disk($disk)->getDriver();
<?php     protected function metaPath()

    {

        return storage_path("statamic/users/{$this->id}.yaml");

    }



    public function fileData()
<?php         $this->expires = $expires * 60;

        $this->throttle = $throttle;



        $this->path = storage_path("statamic/password_resets/$table.yaml");

    }



    public function create(CanResetPasswordContract $user)
<?php         ];



        $gitignores = [

            storage_path('statamic'),

        ];



        foreach (array_filter($gitkeeps) as $dir) {
<?php     protected function clearForms()

    {

        $this->files->deleteDirectory(resource_path('forms'));

        $this->files->deleteDirectory(storage_path('forms'));



        $this->info('Forms cleared successfully.');
<?php         $content = $exporter->export();



        if ($this->request->has('download')) {

            $path = storage_path('statamic/tmp/forms/'.$form->handle().'-'.time().'.'.$type);

            File::put($path, $content);

            $response = response()->download($path)->deleteFileAfterSend(true);

        } else {
<?php     {

        return Config::get('statamic.assets.image_manipulation.cache')

            ? Config::get('statamic.assets.image_manipulation.cache_path')

            : storage_path('statamic/glide');

    }

}
<?php     protected function storagePath()

    {

        return storage_path("statamic/oauth/{$this->name}.php");

    }



    public function toArray()
<?php             'content' => base_path('content'),

            'resources' => base_path('resources'),

            'users' => base_path('users'),

            'storage' => storage_path('statamic'),

        ];
<?php     private function createFileLockStore()

    {

        File::makeDirectory($dir = storage_path('statamic/stache-locks'));



        return new FlockStore($dir);

    }
<?php     protected function createTemporaryExceptionFile($string, $path = null)

    {

        $path = storage_path('statamic/tmp/yaml/'.($path ?? md5($string)));



        File::put($path, $string);