| Package Data | |
|---|---|
| Maintainer Username: | besanek |
| Maintainer Contact: | robert@jelen.dev (Robert Jelen) |
| Package Create Date: | 2019-05-09 |
| Package Last Update: | 2025-03-20 |
| Home Page: | |
| Language: | PHP |
| License: | BSD-3-Clause |
| Last Refreshed: | 2025-10-27 03:19:03 |
| Package Statistics | |
|---|---|
| Total Downloads: | 50,139 |
| Monthly Downloads: | 866 |
| Daily Downloads: | 17 |
| Total Stars: | 2 |
| Total Watchers: | 1 |
| Total Forks: | 4 |
| Total Open Issues: | 0 |
Meta filesystem, witch you can acreate aliases for other filesystems.
$ composer require "besanek/laravel-alias-storage"
<?php // config/filesystems.php
return [
'something' => [
'driver' => 'alias',
'target' => 'local',
],
];
In that case, calling Storage::disk('something') will returns local filesystem.
<?php // config/filesystems.php
return [
'video' => [
'driver' => 'alias',
'target' => env('VIDEO_STORAGE', 'local'),
],
'local' => [
'driver' => 'local',
'root' => storage_path('app'),
],
's3' => [
'driver' => 's3',
// config ...
]
];
In local development, you can store videos in local filesystem. But in production, you can set environment VIDEO_STORAGE=s3 and
your video uploads are stored and served from S3. Awesome!