diff --git a/app/Http/Controllers/CategoriesController.php b/app/Http/Controllers/CategoriesController.php index 2383dc5530..244a687ede 100755 --- a/app/Http/Controllers/CategoriesController.php +++ b/app/Http/Controllers/CategoriesController.php @@ -76,8 +76,7 @@ class CategoriesController extends Controller $category->checkin_email = $request->input('checkin_email', '0'); $category->user_id = Auth::id(); - $category = $request->handleImages($category,600, public_path().'/uploads/categories'); - + $category = $request->handleImages($category); if ($category->save()) { return redirect()->route('categories.index')->with('success', trans('admin/categories/message.create.success')); } @@ -136,7 +135,7 @@ class CategoriesController extends Controller $category->checkin_email = $request->input('checkin_email', '0'); - $category = $request->handleImages($category,600, public_path().'/uploads/categories'); + $category = $request->handleImages($category); if ($category->save()) { // Redirect to the new category page diff --git a/app/Http/Controllers/CompaniesController.php b/app/Http/Controllers/CompaniesController.php index 369672354b..fbb5754a51 100644 --- a/app/Http/Controllers/CompaniesController.php +++ b/app/Http/Controllers/CompaniesController.php @@ -62,7 +62,7 @@ final class CompaniesController extends Controller $company = new Company; $company->name = $request->input('name'); - $company = $request->handleImages($company,600, public_path().'/uploads/companies'); + $company = $request->handleImages($company); if ($company->save()) { return redirect()->route('companies.index') @@ -114,7 +114,7 @@ final class CompaniesController extends Controller $company->name = $request->input('name'); - $company = $request->handleImages($company,600, public_path().'/uploads/companies'); + $company = $request->handleImages($company); if ($company->save()) {