ldc-qrcollector-back/app/Http/Requests/Bo/Urls/UpdateUrlRequest.php
2023-03-20 13:05:14 +00:00

33 lines
662 B
PHP

<?php
namespace App\Http\Requests\Bo\Urls;
use Illuminate\Foundation\Http\FormRequest;
class UpdateUrlRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return boolean
*/
public function authorize()
{
return auth()->check();
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'key' => 'string',
'value' => 'string',
'brand' => 'integer|exists:App\Models\Brand,id',
'image_settings' => 'string'
];
}
}