From d812e2f391d526de34d20f65a6b4b7e6f973f871 Mon Sep 17 00:00:00 2001 From: axeloz Date: Wed, 19 Jul 2017 18:23:36 +0200 Subject: [PATCH] Redirecting / to /upload --- readme.md | 1 + routes/web.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/readme.md b/readme.md index becddd9..982403c 100644 --- a/readme.md +++ b/readme.md @@ -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**. diff --git a/routes/web.php b/routes/web.php index 51489df..9b9750f 100644 --- a/routes/web.php +++ b/routes/web.php @@ -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',