18 lines
424 B
PHP
18 lines
424 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Bo\Projects;
|
|
|
|
class UpdateProjectRequest extends StoreProjectRequest
|
|
{
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function rules()
|
|
{
|
|
return array_merge(parent::rules(), [
|
|
'name' => 'required|string|min:3|max:255|unique:projects,name,' . $this->route('project')->id . ',id',
|
|
]);
|
|
}
|
|
}
|