Customers Add+Edit, API WP

This commit is contained in:
Kevin Adametz 2020-06-12 14:46:51 +02:00
parent dc63fa9fb2
commit 75a0f9a38a
120 changed files with 11894 additions and 6134 deletions

View file

@ -5,7 +5,7 @@ namespace App\Http\Controllers;
use App\Models\Category;
use App\Models\IqImage;
use App\Models\ProductCategory;
use Input;
use\Request;
class CategoryController extends Controller
@ -45,7 +45,7 @@ class CategoryController extends Controller
public function store()
{
$data = Input::all();
$data = Request::all();
$data['active'] = isset($data['active']) ? true : false;
$data['parent_id'] = isset($data['parent_id']) ? $data['parent_id'] : null;
if($data['id'] == "new"){
@ -105,7 +105,7 @@ class CategoryController extends Controller
public function imageUpload(){
$category_id = Input::get('category_id');
$category_id = Request::get('category_id');
$category = Category::findOrFail($category_id);
try {