for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Arcanedev\Support\Http;
use Illuminate\Foundation\Http\FormRequest as BaseFormRequest;
/**
* Class FormRequest
*
* @package Arcanedev\Support
* @author ARCANEDEV <[email protected]>
* @method array sanitize()
*/
abstract class FormRequest extends BaseFormRequest
{
/* -----------------------------------------------------------------
| Main Methods
| -----------------------------------------------------------------
* Determine if the user is authorized to make this request.
* @return bool
public function authorize()
return false;
}
* Get the validation rules that apply to the request.
* @return array
abstract public function rules();
* Prepare the data for validation.
protected function prepareForValidation()
if (method_exists($this, 'sanitize')) {
$this->merge($this->sanitize());