Redirecting / to /upload

This commit is contained in:
Axel 2017-07-19 18:23:36 +02:00
parent 46b8593a9d
commit d812e2f391
2 changed files with 5 additions and 0 deletions

View file

@ -58,6 +58,7 @@ The application also uses:
- `LOCALE=en` change this to "fr" or "en"
- `STORAGE_PATH=` change this wherever you want to store the files
- `UPLOAD_MAX_FILESIZE=5M` change this to the value you want (M, G, T, ...). Attention : you must configure your PHP settings too (`post_max_size`, `upload_max_filesize` and `memory_limit`)
- generate the Laravel KEY: `php artisan key:generate`
- start the Laravel scheduler (it will delete expired bundles of the storage). For example `* * * * * php /path-to-your-project/artisan schedule:run >> /dev/null 2>&1`
Use your browser to navigate to your domain name (example: files.yourdomain.com) and **that's it**.

View file

@ -11,6 +11,10 @@
|
*/
Route::get('/', function() {
return redirect()->route('upload.create');
});
Route::prefix('upload')->middleware(['web', 'upload'])->group(function() {
Route::get('/', [
'uses' => 'UploadController@create',