'required', 'type' => ['required', Rule::in('category', 'page', 'url')], 'category_id' => 'required_if:type,category', 'page_id' => 'required_if:type,page', 'url' => 'required_if:type,url', 'target' => ['required', Rule::in('_self', '_blank')], 'is_fluid' => 'required|boolean', 'is_active' => 'required|boolean', ]; } }