Laravel\Lumen\Application::storagePath PHP Method

storagePath() public method

Get the storage path for the application.
public storagePath ( string | null $path = null ) : string
$path string | null
return string
    public function storagePath($path = null)
    {
        return $this->basePath() . '/storage' . ($path ? '/' . $path : $path);
    }

Usage Example

 /**
  * Maintenance file path.
  *
  * @return string
  */
 public function maintenanceFilePath()
 {
     return $this->app->storagePath($this->maintenanceFile);
 }
All Usage Examples Of Laravel\Lumen\Application::storagePath