PageRenderTime 12ms CodeModel.GetById 9ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/app/Laravel/Requests/Backoffice/ImageSliderRequest.php

https://bitbucket.org/cityserv/techreportph
PHP | 25 lines | 19 code | 6 blank | 0 comment | 0 complexity | 091f9bb9569f08acc51caa0d2930a6d5 MD5 | raw file
 1<?php namespace App\Laravel\Requests\Backoffice;
 2
 3use Session,Auth, Input;
 4use App\Laravel\Requests\RequestManager;
 5
 6class ImageSliderRequest extends RequestManager{
 7
 8	public function rules(){
 9
10		$rules = [
11			'title' => "required",
12			'sub_title' => "required",
13			'order' => "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}