Свойство | Тип | Описание | |
---|---|---|---|
$counters | array | Various counters of files being modified. | |
$description | string | ||
$filesystem | Illuminate\Filesystem\FilesystemManager | Filesystem Manager instance. | |
$signature | string | ||
$uploader | Uploader instance. |
Метод | Описание | |
---|---|---|
__construct ( FileSystemManager $filesystem, |
Constructor. | |
handle ( ) : void | Execute the console command. |
Метод | Описание | |
---|---|---|
createRecordForFile ( string $disk, string $path ) : void | Generate a new media record. | |
getRecordForFile ( string $path, Illuminate\Database\Eloquent\Collection $existing_media ) : |
Search through the record list for one matching the provided path. | |
listFiles ( atring $disk, string $directory = '', boolean $recursive = true ) : array | Generate a list of all files in the specified directory. | |
outputCounters ( boolean $force ) : void | Send the counter total to the console. | |
resetCounters ( ) : void | Reset the counters of processed files. | |
updateRecordForFile ( |
Update an existing media record. |
public __construct ( FileSystemManager $filesystem, |
||
$filesystem | FileSystemManager | |
$uploader |
protected getRecordForFile ( string $path, Illuminate\Database\Eloquent\Collection $existing_media ) : |
||
$path | string | |
$existing_media | Illuminate\Database\Eloquent\Collection | |
Результат |
protected outputCounters ( boolean $force ) : void | ||
$force | boolean | |
Результат | void |
protected resetCounters ( ) : void | ||
Результат | void |
protected updateRecordForFile ( |
||
$media | ||
$path | string | |
Результат | void |
protected array $counters | ||
Результат | array |
protected FilesystemManager,Illuminate\Filesystem $filesystem | ||
Результат | Illuminate\Filesystem\FilesystemManager |