Skip to content
Laravel Packagev13.xMIT License2.5K+ downloadsAI Ready · Laravel Boost

Uploader: Upload once, serve it right

Uploader stores every upload on the Laravel disk you choose, under an unguessable hashed name, and keeps a record of it in an uploads table. You get the right URL for each file, whether it lives on a local disk, a public disk, or a private S3 bucket, plus image thumbnails and visibility changes in one call. It is AI ready: php artisan boost:install teaches your coding agent the whole package through Laravel Boost.

$composer require pharaonic/laravel-uploader

Compatibility

Each line is released for the versions in its row, read from that release's composer.json. Pick the line that matches your project; a combination not listed isn't supported. Find the right line of every package for your project.

LineLatest releasePHPLaravelStatusDocs
v13.xv13.3.1 Nov 29, 20268.3 – 8.513Current Docs: Read the v13.x docs
v12.xv12.2.1 Nov 29, 20268.2 – 8.512Maintained Docs: Read the v12.x docs
v11.xv11.2.1 Nov 29, 20268.2 – 8.411MaintainedLaravel 11 no longer gets security fixes Docs: Read the v11.x docs
v10.xv10.2.1 Nov 29, 20268.1 – 8.310MaintainedLaravel 10 no longer gets security fixes Docs: Read the v10.x docs
v9.xv9.1.1 Nov 29, 20268.0 – 8.29MaintainedLaravel 9 no longer gets security fixes Docs: Read the v9.x docs
v8.xv8.1.1 Nov 29, 20268.0 – 8.18MaintainedLaravel 8 no longer gets security fixes Docs: Read the v8.x docs
v7.xv7.1.1 Nov 29, 20268.07MaintainedLaravel 7 no longer gets security fixes Docs: Read the v7.x docs
v6.xv6.2.1 Nov 29, 20268.06MaintainedLaravel 6 no longer gets security fixes Docs: Read the v6.x docs

Maintenance

Latest release
v13.3.1
Nov 29, 2026 (2 days ago)
Released lines
8
documented lines with a release; see compatibility
CI on develop
Tests passed
latest run Nov 29, 2026

From the package's releases and its GitHub Actions. A passing run means the test suite passed on develop, on every PHP version it supports; it isn't a security review, and each release line has its own runs on GitHub. Checked hourly.

A quick look

Store an avatar with a thumbnail and keep its hash on the user.

app/Http/Controllers/AvatarController.php
1public function update(Request $request)
2{
3 $upload = upload($request->file('avatar'), [
4 'path' => 'avatars',
5 'thumbnail' => ['width' => 200, 'ratio' => true],
6 ]);
7 
8 $request->user()->update(['avatar' => $upload->hash]);
9 
10 return ['url' => $upload->url, 'thumbnail' => $upload->thumbnail->url];
11}
Key Features

Everything you need to handle uploads

Pass a file to `upload()` and get back a model that knows its URL, size and thumbnail.

Any Disk

Store on local, public, s3 or any disk from config/filesystems.php, per upload or by default.

Hashed File Names

Every file gets a random 67-character hash, so its name and URL cannot be guessed.

Image Processing

Resize, compress and convert images while they upload, with an optional thumbnail.

Thumbnails

A resized copy of each image, by width, height or both, linked as $upload->thumbnail.

Video and Audio

Transcode videos and audio with FFmpeg on your queue, with a status on every upload.

The Right URL

$upload->url returns a route for local files, a temporary URL for private S3 files, and the disk URL otherwise.

Safe File Route

Local files stream without sessions or cookies, with nosniff, and risky types are sent as downloads.

Safe Deletes

Files are deleted only once their deletion commits, and an upload that rolls back leaves no file behind.

AI Ready

Ships a Laravel Boost guideline and an uploader-development skill, so php artisan boost:install teaches Claude Code, Cursor, Codex or Copilot the whole API.

FAQ

Uploader Questions

Quick answers about installing and using Uploader.

What is Uploader?

Upload files to any Laravel disk with hashed names, image thumbnails, visibility control and secure URLs, through a facade, helpers and an Eloquent model. It's a free, open-source Laravel package by Pharaonic.

How do I install Uploader?

Run composer require pharaonic/laravel-uploader in your project's root directory, then php artisan migrate to create the uploads table.

What does Uploader require?

The latest release requires PHP 8.3 – 8.5 and Laravel 13. Thumbnails also need the GD or Imagick extension.

Does it need FFmpeg?

Only for video and audio processing. Without it, every other upload works, and asking for video or audio processing throws a clear exception before anything is stored. Image processing uses GD or Imagick.

Does it work with Amazon S3?

Yes. Upload to any S3 disk, set each file's visibility, and private files get temporary URLs that expire after the minutes you configure.

Can anyone open a file on a local disk?

Local files are served by the package route to anyone holding the URL. The URL contains a random 67-character hash, so it cannot be guessed, but treat it like a share link. Use a private S3 disk for files that need expiring access.

Is Uploader free to use?

Yes. Uploader is open source under the MIT license, so you can use it in personal and commercial projects.

Where can I find the Uploader documentation?

Read the Uploader documentation for setup, configuration, and usage examples.

How do I report a bug or contribute to Uploader?

Open an issue or a pull request on GitHub, or ask in the Pharaonic Discord.

Ready to dig in?

Read the full documentation for installation, configuration, upload options, thumbnails, image processing, video and audio processing, URLs and visibility, the file route, and the complete API reference.