From 333827eaaeaaa06d109a99278739e862a8c71e68 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Tue, 25 Feb 2020 15:40:15 -0500 Subject: [PATCH] Fix capitalization on file class --- app/Http/Controllers/DashboardController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/DashboardController.php b/app/Http/Controllers/DashboardController.php index 4e7fd35..8fbf9d7 100644 --- a/app/Http/Controllers/DashboardController.php +++ b/app/Http/Controllers/DashboardController.php @@ -216,7 +216,7 @@ class DashboardController extends Controller { return 'permission-fail'; } else if ($request->hasFile('file')) { $directory = base_path() . '/public/uploads/' . $request['model'] . '/img/'; - file::makeDirectory($directory, 0755, true, true); + File::makeDirectory($directory, 0755, true, true); $image = Image::make($request->file('file')); $image->save($directory . $request['id'] . '-' . $request['name'] . '.jpg'); $item->touch(); @@ -250,7 +250,7 @@ class DashboardController extends Controller { return 'permission-fail'; } else if ($request->hasFile('file')) { $directory = base_path() . '/public/uploads/' . $request['model'] . '/files/'; - file::makeDirectory($directory, 0755, true, true); + File::makeDirectory($directory, 0755, true, true); $request->file('file')->move($directory, $request['id'] . '-' . $request['name'] . '.' . $request['ext']); $item->touch(); return 'success'; @@ -445,7 +445,7 @@ class DashboardController extends Controller { $image->resize($new_width, $new_height); } - file::makeDirectory(base_path() . '/public' . User::$profile_image_dir, 0755, true, true); + File::makeDirectory(base_path() . '/public' . User::$profile_image_dir, 0755, true, true); $image->save($user->profileImage(true, true)); $user->touch(); return $user->profileImage() . '?version=' . $user->timestamp();