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

/app/Laravel/Requests/Backoffice/PartnerRequest.php

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