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

/app/Laravel/Requests/Backoffice/EditVideoGalleryRequest.php

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