移动文件在 Laravel 4 中不起作用

Move File doesn't work in Laravel 4

我只是使用一个表单来上传文件,并使用一个简单的路径将文件移动到我的 /public/images 文件夹中。但是在 images 目录中找不到移动的文件。我正在关注 Leanpub Laravel CodeBright 书。

我的blade模板

 <form action="{{ url('handle-form') }}"
  method="POST"
  enctype="multipart/form-data">
     <input type="file" name="book" />
     <input type="submit">
  </form>

route.php

Route::get('/', function()
{
    return View::make('form');
});

Route::post('handle-form', function()
{
    Input::file('book')->move('/public/images');
    return 'File was moved.';
});

按下提交按钮后 'File was moved.' 显示,但所需目录中没有文件。

我明白了。我只是从 '/public/images' 中删除前导 '/' 及其工作 fine.Now 我正在使用 'public/images'.