26 lines
652 B
PHP
26 lines
652 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Bo\Urls;
|
|
|
|
class UpdateUrlRequest extends StoreUrlRequest
|
|
{
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function rules()
|
|
{
|
|
$rules = [
|
|
'value' => 'required|string|max:255',
|
|
'title' => 'required|string|min:3|max:255',
|
|
'brand_id' => 'required|integer|exists:App\Models\Brand,id',
|
|
'image_settings' => 'required|string',
|
|
];
|
|
|
|
return \array_merge(
|
|
$rules,
|
|
$this->pictureRules('logo', false, 100, 100, 500, 500),
|
|
);
|
|
}
|
|
}
|