Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1. <?php namespace App\Http\Requests;
  2.  
  3. use App\Http\Requests\Request;
  4.  
  5. class ContactFormRequest extends Request {
  6.  
  7.     /**
  8.      * Determine if the user is authorized to make this request.
  9.      *
  10.      * @return bool
  11.      */
  12.     public function authorize()
  13.     {
  14.         return true;
  15.     }
  16.  
  17.     /**
  18.      * Get the validation rules that apply to the request.
  19.      *
  20.      * @return array
  21.      */
  22.     public function rules()
  23.     {
  24.         return [
  25.             'name' => 'required|',
  26.             'email' => 'required|'
  27.         ];
  28.     }
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement