/
home
/
techb158
/
ileadtechnology.com
/
SSM
/
app
/
Http
/
Requests
/
post
/
/home/techb158/ileadtechnology.com/SSM/app/Http/Requests/post
mkdir
upload
Name
Size
Mode
Actions
ArticleRequest.php
1262
0644
edit
dl
rm
Edit:
/home/techb158/ileadtechnology.com/SSM/app/Http/Requests/post/ArticleRequest.php
(1262B)
<?php namespace App\Http\Requests\Post; use Illuminate\Foundation\Http\FormRequest; class ArticleRequest extends FormRequest { /** * 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 [ 'article_type_id' => 'required', 'description' => 'required', 'date_of_article' => 'required|date', 'title' => 'required' ]; } /** * Translate fields with user friendly name. * * @return array */ public function attributes() { return [ 'article_type_id' => trans('post.article_type'), 'description' => trans('post.article_description'), 'date_of_article' => trans('post.date_of_article'), 'title' => trans('post.article_title') ]; } /** * Get the error messages for the defined validation rules. * * @return array */ public function messages() { return [ ]; } }
Save
cmd:
run