ldc-legaulois/app/Http/Requests/UpdateSubRange.php

22 lines
416 B
PHP
Raw Permalink Normal View History

2021-09-23 13:35:48 +02:00
<?php
namespace App\Http\Requests;
class UpdateSubRange extends StoreSubRange
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return \array_merge(parent::rules(), [
'slug' => [
'required',
2022-01-04 10:38:37 +01:00
'unique:sub_ranges,slug,' . $this->subrange->id
]
]);
}
2021-09-23 13:35:48 +02:00
}