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

/app/Laravel/Requests/Backoffice/PageContentRequest.php

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