ldc-qrcollector-back/app/Http/Requests/Bo/Services/UpdateServiceRequest.php

20 lines
382 B
PHP
Raw Permalink Normal View History

<?php
namespace App\Http\Requests\Bo\Services;
class UpdateServiceRequest extends StoreServiceRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'name' => 'string|max:255|required',
'brand_id' => 'required|exists:brands,id'
];
}
}