20 lines
382 B
PHP
20 lines
382 B
PHP
|
|
<?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'
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|