check(); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { $slug = request()->post('slug'); return [ 'slug' => 'required|unique:product_applications,slug,'.$this->id.',id', ]; } /** * Get the validation attributes that apply to the request. * * @return array */ public function attributes() { return [ // ]; } /** * Get the validation messages that apply to the request. * * @return array */ public function messages() { return [ // ]; } }