original_string: 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()),
              ],
  
          ];
      }
code: 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()),
              ],
  
          ];
      }
code_tokens: 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 ( ) ) , ] , ] ; }
docstring: Builds the validation rules for the product information.
  
  @return array
docstring_tokens: Builds the validation rules for the product information .