drop unique validator
This commit is contained in:
parent
372a439d3b
commit
c9666a45d5
|
@ -32,10 +32,10 @@ class PostController extends Controller
|
|||
}
|
||||
if ($request->getMethod() === 'POST') {
|
||||
$validated = $request->validate([
|
||||
'content' => 'required|unique:posts',
|
||||
'slug' => 'string|max:255|unique:posts',
|
||||
'content' => 'required',
|
||||
'slug' => 'string|max:255',
|
||||
'is_draft' => 'int|max:1',
|
||||
'title' => 'required|string|max:255|unique:posts',
|
||||
'title' => 'required|string|max:255',
|
||||
'password' => 'string|max:255',
|
||||
]);
|
||||
$post->fill($validated);
|
||||
|
|
Loading…
Reference in a new issue