Skip to content

Instantly share code, notes, and snippets.

@mikimaine
Created July 18, 2017 17:06
Show Gist options
  • Save mikimaine/996c88e55cf5f8e095cb8f0bb667e5ac to your computer and use it in GitHub Desktop.
Save mikimaine/996c88e55cf5f8e095cb8f0bb667e5ac to your computer and use it in GitHub Desktop.
TestRequest
<?php
namespace App\Http\Requests;
use Illuminate\Validation\Rule;
use App\Http\Requests\Request;
/**
* Class TestRequest.
*/
class TestRequest 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 [];
}
/**
* Get custom messages for validator errors.
*
* @return array
*/
public function messages()
{
return [];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment