Do you want to save the files or only the names? In the former case then use something like this:

<form method="post" enctype="multipart/form-data" action="/upload_file">
    <input type="file" name="file" />
    <input type="submit" name="submit" value="upload" />

And these methods in the router.php file:

Route::get('/upload_form', function()
    $data['files'] = Attachment::get();
    return View::make('uploads.form', $data);


Route::post('/upload_file', function()

    $rules = array(

        'file' => 'required|mimes:doc,docx,pdf',


    $validator = Validator::make(Input::all(), $rules);

        return Redirect::to('/upload_form')->withErrors($validator);

            $f = Input::file('file');
            $att = new Attachment;
            $att->name = $f->getClientOriginalName();
            $att->file = base64_encode(file_get_contents($f->getRealPath()));
            $att->mime = $f->getMimeType();
            $att->size = $f->getSize();

            return Redirect::to('/upload_form');


I'm assuming the usage of a model Attachment and a table schema like this:

CREATE TABLE `attachments` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `file` longblob NOT NULL,
  `mime` varchar(255) DEFAULT NULL,
  `size` int(10) unsigned NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `deleted_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)

If you still have problems show us your code. Bye.

Votes + Comments
This is not a good approach to write logic in route file