Property | Type | Description | |
---|---|---|---|
$attributes | The attributes collection. | ||
$filesystem | Illuminate\Filesystem\Filesystem | The laravel filesystem instance. | |
$path | string | The file path. |
Method | Description | |
---|---|---|
__call ( string $method, array $arguments = [] ) : mixed | Handle call to __call method. | |
__construct ( mixed $path, Illuminate\Filesystem\Filesystem $filesystem = null ) | The constructor. | |
__get ( string $key ) : mixed | Handle magic method __get. | |
__toString ( ) : string | Handle call to __toString method. | |
get ( $key, null $default = null ) : mixed | Get the specified attribute from json file. | |
getAttributes ( ) : array | Get file contents as array. | |
getContents ( ) : string | Get file content. | |
getFilesystem ( ) : Illuminate\Filesystem\Filesystem | Get filesystem. | |
getPath ( ) : string | Get path. | |
make ( string $path, Illuminate\Filesystem\Filesystem $filesystem = null ) : static | Make new instance. | |
save ( ) : boolean | Save the current attributes array to the file storage. | |
set ( string $key, mixed $value ) | Set a specific key & value. | |
setFilesystem ( Illuminate\Filesystem\Filesystem $filesystem ) | Set filesystem. | |
setPath ( mixed $path ) | Set path. | |
toJsonPretty ( array $data = null ) : string | Convert the given array data to pretty json. | |
update ( array $data ) : boolean | Update json contents from array data. |
public __construct ( mixed $path, Illuminate\Filesystem\Filesystem $filesystem = null ) | ||
$path | mixed | |
$filesystem | Illuminate\Filesystem\Filesystem |
public __toString ( ) : string | ||
return | string |
public getAttributes ( ) : array | ||
return | array |
public getFilesystem ( ) : Illuminate\Filesystem\Filesystem | ||
return | Illuminate\Filesystem\Filesystem |
public setFilesystem ( Illuminate\Filesystem\Filesystem $filesystem ) | ||
$filesystem | Illuminate\Filesystem\Filesystem |
public toJsonPretty ( array $data = null ) : string | ||
$data | array | |
return | string |
protected Collection,Illuminate\Support $attributes | ||
return |
protected Filesystem,Illuminate\Filesystem $filesystem | ||
return | Illuminate\Filesystem\Filesystem |