added code example to file::upload method.
This commit is contained in:
parent
09b4471a5d
commit
4661ef14bc
|
@ -106,6 +106,11 @@ public static function modified($path)
|
||||||
/**
|
/**
|
||||||
* Move an uploaded file to permanent storage.
|
* Move an uploaded file to permanent storage.
|
||||||
*
|
*
|
||||||
|
* <code>
|
||||||
|
* // Upload the $_FILES['photo'] file to a permanent location
|
||||||
|
* File::upload('photo', 'path/to/new/home.jpg');
|
||||||
|
* </code>
|
||||||
|
*
|
||||||
* @param string $key
|
* @param string $key
|
||||||
* @param string $path
|
* @param string $path
|
||||||
* @return bool
|
* @return bool
|
||||||
|
|
Loading…
Reference in New Issue