From fc1bd902c4cf3c019a4129a11697efd1686717d8 Mon Sep 17 00:00:00 2001 From: akbarjimi Date: Wed, 3 Mar 2021 18:45:54 +0330 Subject: [PATCH] Fix max bound --- app/Http/Controllers/FileController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/FileController.php b/app/Http/Controllers/FileController.php index 63816f6..a132732 100644 --- a/app/Http/Controllers/FileController.php +++ b/app/Http/Controllers/FileController.php @@ -4,7 +4,7 @@ namespace App\Http\Controllers; use App\Models\File; use App\Models\Project; -use App\Rules\maxBound; +use App\Rules\MaxBound; use App\Models\Business; use Illuminate\Support\Str; use Illuminate\Http\Request; @@ -102,7 +102,7 @@ class FileController extends Controller $business = Business::findOrFail($business); $project = Project::findOrFail($project); - // $this->validate($request, ['file' => 'required|file',]); + $this->validate($request, ['file' => 'required|file',]); $file = $request->file('file'); $file_extension = $file->getClientOriginalExtension();