app/Http/Requests/DepartmentRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules(): array
    {
        return [
            'name'      => 'request|string|max:255',
            'address'   => 'request|string|max:255',
        ];
    }
public function rules ( ) : array { return [ 'name' => 'request|string|max:255' , 'address' => 'request|string|max:255' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .