protected function rulesForBody()
    {
        return [
            'name' => 'required',
            'description' => 'required',
            'cost' => 'required|numeric|max:999999999',
            'price' => 'required|numeric|max:999999999',
            'brand' => 'required',
            'stock' => 'required|integer',
            'low_stock' => 'required|integer',
            'status' => 'required|boolean',

            'category' => [
                'required',
                Rule::exists('categories', 'id')->where('id', $this->request->get('category')),
            ],

            'condition' => [
                'required',
                Rule::in(Attributes::make('condition')->keys()),
            ],

        ];
    }