No description
Find a file
2026-11-03 15:53:07 +01:00
.vscode intial work 2026-11-03 15:29:18 +01:00
config intial work 2026-11-03 15:29:18 +01:00
src refactor(StorageService): change remove methods to return bool 2026-11-03 15:53:07 +01:00
.editorconfig intial work 2026-11-03 15:29:18 +01:00
.gitignore intial work 2026-11-03 15:29:18 +01:00
.gitlab-ci.yml intial work 2026-11-03 15:29:18 +01:00
CHANGELOG.md intial work 2026-11-03 15:29:18 +01:00
composer.json feat(Facades): add StorageService facade with methods for file operations 2026-11-03 15:36:45 +01:00
license.md intial work 2026-11-03 15:29:18 +01:00
phpcs.xml chore: update PHP CodeSniffer and add Pint configuration 2026-11-03 15:38:09 +01:00
phpstan.neon chore: update PHP CodeSniffer and add Pint configuration 2026-11-03 15:38:09 +01:00
phpunit.xml intial work 2026-11-03 15:29:18 +01:00
pint.json chore: update PHP CodeSniffer and add Pint configuration 2026-11-03 15:38:09 +01:00
README.md intial work 2026-11-03 15:29:18 +01:00

Storage Laravel

A clean Laravel service package to manage and sanitize external files.

Installation

composer require uwil/storage-laravel

Configuration

Publish the config file:

php artisan vendor:publish --provider="Uwil\Storage\StorageServiceProvider" --tag="config"

Usage

Inject Uwil\Storage\Contracts\StorageService into your controllers or jobs:

use Uwil\Storage\Contracts\StorageService;

public function upload(Request $request, StorageService $storage)
{
    $request->validate(['file' => 'required|file']);

    $storedPath = $storage->storeUploaded($request->file('file'));
}