From c70bd62a0f8946be3f2712382bdabbc655aa6031 Mon Sep 17 00:00:00 2001 From: Daniel Meltzer Date: Sat, 23 May 2020 11:36:16 -0400 Subject: [PATCH] Missing includes. Fix by using the request object instead of facade. --- app/Http/Controllers/Licenses/LicenseFilesController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Licenses/LicenseFilesController.php b/app/Http/Controllers/Licenses/LicenseFilesController.php index 04e48ee9b6..328e5aa9c6 100644 --- a/app/Http/Controllers/Licenses/LicenseFilesController.php +++ b/app/Http/Controllers/Licenses/LicenseFilesController.php @@ -34,12 +34,12 @@ class LicenseFilesController extends Controller if (isset($license->id)) { $this->authorize('update', $license); - if (Request::hasFile('file')) { + if ($request->hasFile('file')) { if (!Storage::exists('private_uploads/licenses')) Storage::makeDirectory('private_uploads/licenses', 775); $upload_success = false; - foreach (Input::file('file') as $file) { + foreach ($request->file('file') as $file) { $extension = $file->getClientOriginalExtension(); $file_name = 'license-'.$license->id.'-'.str_random(8).'-'.str_slug(basename($file->getClientOriginalName(), '.'.$extension)).'.'.$extension;