PHP Class App\Services\Filesystem\LaravelFilesystem

Inheritance: implements App\Services\Filesystem\FilesystemInterface
ファイルを表示 Open project: ngmy/webloyer Class Usage Examples

Protected Properties

Property Type Description
$fs

Public Methods

Method Description
__construct ( Illuminate\Filesystem\Filesystem $fs )
delete ( string $path ) : boolean Delete a file.
get ( string $path ) : string Read a file.
put ( string $path, string $contents ) : mixed Write a file.

Method Details

__construct() public method

public __construct ( Illuminate\Filesystem\Filesystem $fs )
$fs Illuminate\Filesystem\Filesystem

delete() public method

Delete a file.
public delete ( string $path ) : boolean
$path string File path
return boolean

get() public method

Read a file.
public get ( string $path ) : string
$path string File path
return string Contents

put() public method

Write a file.
public put ( string $path, string $contents ) : mixed
$path string File path
$contents string Contents to write a file
return mixed

Property Details

$fs protected_oe property

protected $fs