%PDF- %PDF-
Direktori : /var/www/html/news/app/Http/Requests/Tag/ |
Current File : /var/www/html/news/app/Http/Requests/Tag/TagUpdateRequest.php |
<?php namespace App\Http\Requests\Tag; use App\Http\Requests\BaseRequest; class TagUpdateRequest extends BaseRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'id' => 'required|integer:exists:tags,id', 'tag' => 'required|string|unique:tags,tag,' . $this->id ]; } public function getSanitationRules() { return []; } }