Skip to content

Commit

Permalink
Merge pull request laravel#1476 from sleimanx2/patch-5
Browse files Browse the repository at this point in the history
Unique requires table name
  • Loading branch information
taylorotwell committed May 28, 2015
2 parents 6fe6ad9 + f8c4f0d commit f24ea6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ The generated class will be placed in the `app/Http/Requests` directory. Let's a
public function rules()
{
return [
'title' => 'required|unique|max:255',
'title' => 'required|unique:blog_posts|max:255',
'body' => 'required',
];
}
Expand Down

0 comments on commit f24ea6e

Please sign in to comment.