optimizations

This commit is contained in:
2026-03-28 19:15:39 +01:00
parent 0b25d9570a
commit cab4fbd83e
509 changed files with 1016804 additions and 1605 deletions

View File

@@ -0,0 +1,26 @@
<?php
declare(strict_types=1);
namespace App\Http\Requests\NovaCards;
use Illuminate\Foundation\Http\FormRequest;
class AdminStoreNovaCardCategoryRequest extends FormRequest
{
public function authorize(): bool
{
return $this->user() !== null;
}
public function rules(): array
{
return [
'slug' => ['required', 'string', 'max:120', 'regex:/^[a-z0-9]+(?:-[a-z0-9]+)*$/'],
'name' => ['required', 'string', 'max:120'],
'description' => ['nullable', 'string', 'max:400'],
'active' => ['sometimes', 'boolean'],
'order_num' => ['sometimes', 'integer', 'min:0', 'max:9999'],
];
}
}