PageRenderTime 21ms CodeModel.GetById 14ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

/app/Laravel/Requests/Backoffice/AwardsRequest.php

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