main screen categories and products

This commit is contained in:
merdan 2022-01-20 12:14:24 +05:00
parent bf7a1df720
commit f36b1e93e4
1 changed files with 3 additions and 0 deletions

View File

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