From 1c60ff3fc6114e0147819e21ae6f09e2abe1a5f5 Mon Sep 17 00:00:00 2001 From: fortitudinous Date: Mon, 5 Apr 2021 19:01:33 +0800 Subject: [PATCH] fix done --- app/Http/Livewire/CreateIdea.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Livewire/CreateIdea.php b/app/Http/Livewire/CreateIdea.php index e9b017c..6e0de40 100644 --- a/app/Http/Livewire/CreateIdea.php +++ b/app/Http/Livewire/CreateIdea.php @@ -15,7 +15,7 @@ class CreateIdea extends Component protected $rules = [ 'title' => 'required|min:4', - 'category' => 'required|integer', + 'category' => 'required|integer|exists:categories,id', 'description' => 'required|min:4', ];