From 4661ef14bc7e844fd7f22a987291fd328cb8e0e4 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sun, 27 Nov 2011 19:25:59 -0600 Subject: [PATCH] added code example to file::upload method. --- laravel/file.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/laravel/file.php b/laravel/file.php index a12c72c6..e2e9a16b 100644 --- a/laravel/file.php +++ b/laravel/file.php @@ -106,6 +106,11 @@ public static function modified($path) /** * Move an uploaded file to permanent storage. * + * + * // Upload the $_FILES['photo'] file to a permanent location + * File::upload('photo', 'path/to/new/home.jpg'); + * + * * @param string $key * @param string $path * @return bool