remove props

This commit is contained in:
2026-06-24 14:43:10 -03:00
parent 8e343ea9c3
commit 75129b7552
41 changed files with 10 additions and 1055 deletions

View File

@@ -2,8 +2,6 @@
namespace App\Domains\Catalog\Requests;
use App\Domains\Catalog\Models\Brand;
use App\Domains\Prop\Support\PropRules;
use Illuminate\Foundation\Http\FormRequest;
class StoreBrandRequest extends FormRequest
@@ -22,7 +20,6 @@ class StoreBrandRequest extends FormRequest
'tenant_codigo' => ['required', 'string', 'exists:tenants,codigo'],
'nombre' => ['required', 'string', 'max:255'],
'descripcion' => ['nullable', 'string'],
...PropRules::sync(Brand::class),
];
}
}

View File

@@ -2,8 +2,6 @@
namespace App\Domains\Catalog\Requests;
use App\Domains\Catalog\Models\Category;
use App\Domains\Prop\Support\PropRules;
use Illuminate\Foundation\Http\FormRequest;
class StoreCategoryRequest extends FormRequest
@@ -22,7 +20,6 @@ class StoreCategoryRequest extends FormRequest
'tenant_code' => ['required_with:categoria_id', 'string', 'exists:tenants,codigo'],
'categoria_id' => ['nullable', 'integer', 'exists:categorias,id'],
'nombre' => ['required', 'string', 'max:255'],
...PropRules::sync(Category::class),
];
}
}

View File

@@ -2,8 +2,6 @@
namespace App\Domains\Catalog\Requests;
use App\Domains\Catalog\Models\Product;
use App\Domains\Prop\Support\PropRules;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
@@ -26,7 +24,6 @@ class StoreProductRequest extends FormRequest
'nombre' => ['required', 'string', 'max:255'],
'descripcion' => ['nullable', 'string'],
'precio' => ['required', 'numeric', 'min:0'],
...PropRules::sync(Product::class),
];
}
}

View File

@@ -2,8 +2,6 @@
namespace App\Domains\Catalog\Requests;
use App\Domains\Catalog\Models\Brand;
use App\Domains\Prop\Support\PropRules;
use Illuminate\Foundation\Http\FormRequest;
class UpdateBrandRequest extends FormRequest
@@ -22,7 +20,6 @@ class UpdateBrandRequest extends FormRequest
'tenant_codigo' => ['required', 'string', 'exists:tenants,codigo'],
'nombre' => ['required', 'string', 'max:255'],
'descripcion' => ['nullable', 'string'],
...PropRules::sync(Brand::class),
];
}
}

View File

@@ -3,7 +3,6 @@
namespace App\Domains\Catalog\Requests;
use App\Domains\Catalog\Models\Category;
use App\Domains\Prop\Support\PropRules;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
@@ -31,7 +30,6 @@ class UpdateCategoryRequest extends FormRequest
Rule::notIn([$category?->id]),
],
'nombre' => ['required', 'string', 'max:255'],
...PropRules::sync(Category::class),
];
}
}

View File

@@ -3,7 +3,6 @@
namespace App\Domains\Catalog\Requests;
use App\Domains\Catalog\Models\Product;
use App\Domains\Prop\Support\PropRules;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
@@ -34,7 +33,6 @@ class UpdateProductRequest extends FormRequest
'nombre' => ['required', 'string', 'max:255'],
'descripcion' => ['nullable', 'string'],
'precio' => ['required', 'numeric', 'min:0'],
...PropRules::sync(Product::class),
];
}
}