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

$path storage_path('app/file.txt');
    public function flushFacades()

    {

        if (! 
$this->files->exists($storagePath storage_path('framework/cache'))) {

            return;

        }
    protected function ensureOutputIsBeingCaptured()

    {

        if (
is_null($this->output) || $this->output == $this->getDefaultOutput()) {

            
$this->sendOutputTo(storage_path('logs/schedule-'.sha1($this->mutexName()).'.log'));

        }

    }
    protected function ensureFacadeExists($alias)

    {

        if (
is_file($path storage_path('framework/cache/facade-'.sha1($alias).'.php'))) {

            return 
$path;

        }
            $this->laravel->maintenanceMode()->activate($this->getDownFilePayload());



            
file_put_contents(

                
storage_path('framework/maintenance.php'),

                
file_get_contents(__DIR__.'/stubs/maintenance-mode.stub')

            );
    protected function links()

    {

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

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

    }
            $this->laravel->maintenanceMode()->deactivate();



            if (
is_file(storage_path('framework/maintenance.php'))) {

                
unlink(storage_path('framework/maintenance.php'));

            }
            $this->laravel->maintenanceMode()->deactivate();



            if (
is_file(storage_path('framework/maintenance.php'))) {

                
unlink(storage_path('framework/maintenance.php'));

            }



            
$this->laravel->get('events')->dispatch(MaintenanceModeDisabled::class);
    protected function path(): string

    
{

        return 
storage_path('framework/down');

    }

}
    {

        
$disk $disk ?: static::$app['config']->get('filesystems.default');



        
$root storage_path('framework/testing/disks/'.$disk);



        if (
$token ParallelTesting::token()) {

            
$root "{$root}_test_{$token}";
        $disk $disk ?: static::$app['config']->get('filesystems.default');



        static::
set($disk$fake = static::createLocalDriver(array_merge($config, [

            
'root' => storage_path('framework/testing/disks/'.$disk),

        ])));



        return 
$fake;
        $this->fs = new Filesystem;



        
$this->id Str::random();

        
$this->logfile storage_path("logs/command_scheduling_test_{$this->id}.log");



        
$this->writeArtisanScript();

    }
    protected function setUp(): void

    
{

        
$this->afterApplicationCreated(function () {

            
File::put($file storage_path('app/public/StardewTaylor.png'), File::get(__DIR__.'/Fixtures/StardewTaylor.png'));

            
$this->stubFile $file;

        });
    protected function setUp(): void

    
{

        
$this->afterApplicationCreated(function () {

            
File::put($file storage_path('app/public/StardewTaylor.png'), File::get(__DIR__.'/Fixtures/StardewTaylor.png'));

            
$this->stubFile $file;

        });
{

    protected function 
tearDown(): void

    
{

        @
unlink(storage_path('framework/down'));

    }



    public function 
testBasicMaintenanceModeResponse()
    public function testBasicMaintenanceModeResponse()

    {

        
file_put_contents(storage_path('framework/down'), json_encode([

            
'retry' => 60,

            
'refresh' => 60,

        ]));