I have a table which holds post_types. When a user wants to search for post_types I must validate whatever they select from the form. I plan to allow them to search for specific one single type or ALL types at once (no plan to allow them multiple selection yet). So my select has something like this
['all' => 'all',
1 => 'User Post',
2 => 'Editor Post',
3 => .... etc]
My 'all' value is not exist in post_types table so a validation rule like exists:post_types,id would not work. How else can I do this?