main screen categories and products
This commit is contained in:
parent
bf7a1df720
commit
f36b1e93e4
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace Sarga\API\Http\Controllers;
|
||||
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
use Webkul\API\Http\Controllers\Shop\Controller;
|
||||
|
|
@ -57,6 +58,8 @@ class IntegrationController extends Controller
|
|||
return response()->json(['errors'=>$e->getMessage()],400);
|
||||
}
|
||||
|
||||
Log::info($data);
|
||||
|
||||
$validation = Validator::make($data, [
|
||||
'category' => 'required',
|
||||
'product_code' => ['required', 'unique:products,sku', new Slug],
|
||||
|
|
|
|||
Loading…
Reference in New Issue