Toggle navigation
Hot Examples
FR
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Rechercher
Accueil
Plank
Mediable
Media
readableSize
Plank\Mediable\Media::readableSize PHP Méthode
Media Class Documentation
Afficher le fichier
Open project: plank/laravel-mediable
readableSize()
public
méthode
Calculate the file size in human readable byte notation.
public
readableSize
(
integer
$precision
= 1 ) :
string
$precision
integer
(_optional_) Number of decimal places to include.
Résultat
string
public function readableSize($precision = 1) { return File::readableSize($this->size, $precision); }
Media
boot
contents
fileExists
getAbsolutePath
getBasenameAttribute
getDiskPath
getUrl
getUrlGenerator
handleMediaDeletion
isPubliclyAccessible
models
move
readableSize
rename
scopeForPathOnDisk
scopeInDirectory
scopeInOrUnderDirectory
scopeUnordered
scopeWhereBasename
storage