<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class {{modelName}}Request extends FormRequest
{
    public function rules(): array
    {
        $rules = [
            // Add your validation rules here
            //'field' => 'sometimes|string|max:255',
        ];

        // Different rules for creation
        //if ($this->isMethod('POST')) {
            // Make fields required if needed
            // $rules['field'] = 'required|string|max:255';
        //}

        return $rules;
    }

    /**
    * Add custom messages when needed
    * public function messages(): array
    * {
    *   return [
    *        'field.required' => __('message.algo'),
    *    ];
    * }
    */
}
