%PDF- %PDF-
Direktori : /var/www/html/news/app/Http/Requests/Comment/ |
Current File : /var/www/html/news/app/Http/Requests/Comment/CommentStoreRequest.php |
<?php namespace App\Http\Requests\Comment; use App\Http\Requests\BaseRequest; class CommentStoreRequest 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 [ 'content' => 'required|string', 'user_id' => 'required|integer|exists:users,id', 'article_id' => 'required|integer|exists:articles,id' ]; } public function getSanitationRules() { return []; } }