Implement board columns and project workflow settings

This commit is contained in:
2026-03-25 01:16:09 +01:00
parent 840d01f6fc
commit 3f9b83ec16
17 changed files with 895 additions and 1 deletions
@@ -0,0 +1,35 @@
<?php
namespace App\Http\Requests;
use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;
class UpdateBoardColumnRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return $this->user() !== null;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'name' => ['required', 'string', 'max:255'],
'position' => ['required', 'integer', 'min:1'],
];
}
public function position(): int
{
return (int) $this->validated('position');
}
}