Created
March 12, 2015 17:17
-
-
Save kirkbushell/57bf3d1db31dd5b8ef72 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace Modules\User\Http\Requests; | |
use Illuminate\Foundation\Http\FormRequest; | |
class UpdateUserRequest extends FormRequest | |
{ | |
public function rules() | |
{ | |
return [ | |
'email' => "required|email|unique:users,email,{$this->user->id}", | |
'first_name' => 'required', | |
'last_name' => 'required', | |
]; | |
} | |
public function authorize() | |
{ | |
return true; | |
} | |
public function messages() | |
{ | |
return []; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment