Skip to content

Instantly share code, notes, and snippets.

@prio101
Created July 28, 2015 07:49
Show Gist options
  • Select an option

  • Save prio101/fef6710baeef2209dcda to your computer and use it in GitHub Desktop.

Select an option

Save prio101/fef6710baeef2209dcda to your computer and use it in GitHub Desktop.
<?php
namespace App\Http\Requests;
use App\Http\Requests\Request;
class MenuAdminFormCreateRequest extends Request
{
/**
* 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 [
/*Start of the validation rules*/
'name' => 'required|min:3',
'serial' => 'required|min:1',
'page_link' => 'required|min:8',
'position' => 'required',
'slug' => 'required|min:10',
'custom_link' => 'required|min:10',
];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment