added code example to file::upload method.

This commit is contained in:
Taylor Otwell 2011-11-27 19:25:59 -06:00
parent 09b4471a5d
commit 4661ef14bc
1 changed files with 5 additions and 0 deletions

View File

@ -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