PATH:
home
/
lab2454c
/
costbloc.com
/
Modules
/
CMS
/
Http
/
Requests
<?php namespace Modules\CMS\Http\Requests; use App\Rules\CheckValidFile; use Illuminate\Foundation\Http\FormRequest; class PageRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'name' => 'required|min:3|max:150', 'slug' => 'required|min:3|max:191|unique:pages,slug', 'meta_title' => 'nullable|max:150', 'meta_description' => 'nullable|max:500', 'status' => 'nullable|in:Active,Inactive', 'type' => 'required|in:page,home', 'image' => ['nullable', new CheckValidFile(getFileExtensions(3))], ]; } }
[-] SliderRequest.php
[edit]
[-] FooterRequest.php
[edit]
[+]
..
[-] SlideRequest.php
[edit]
[-] PageRequest.php
[edit]
[-] PageUpdateRequest.php
[edit]