Customers Add+Edit, API WP
This commit is contained in:
parent
dc63fa9fb2
commit
75a0f9a38a
120 changed files with 11894 additions and 6134 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue