PageRenderTime 21ms CodeModel.GetById 13ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/app/Laravel/Requests/Backoffice/EditTestimonialRequest.php

https://bitbucket.org/cityserv/techreportph
PHP | 25 lines | 19 code | 6 blank | 0 comment | 0 complexity | ad85d0b34b201b8aaead2b7367338c46 MD5 | raw file
 1<?php namespace App\Laravel\Requests\Backoffice;
 2
 3use Session,Auth, Input;
 4use App\Laravel\Requests\RequestManager;
 5
 6class EditTestimonialRequest extends RequestManager{
 7
 8	public function rules(){
 9
10		$rules = [
11			'author' => "required",
12			'position' => "required",
13			'message' => "required",
14			'file' => "image",
15		];
16
17		return $rules;
18	}
19
20	public function messages(){
21		return [
22			'required' => "This field is required.",
23		];
24	}
25}