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

22 lines
406 B
PHP
Raw 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',
2021-12-23 15:40:25 +01:00
'unique:sub_ranges,slug,' . $this->id
]
]);
}
2021-09-23 13:35:48 +02:00
}