Fixed Companies and Categories uploads

This commit is contained in:
snipe 2020-08-24 15:43:11 -07:00
parent b97ff4e907
commit 041fc20955
No known key found for this signature in database
GPG key ID: 10BFFDA3ED34B5AC
2 changed files with 4 additions and 5 deletions

View file

@ -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

View file

@ -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()) {