/** * Remove the specified language from storage. * * @param Language $language * @return Response */ public function destroy(Language $language) { $checkLang = Category::whereLanguageId($language->id)->all(); if (!empty($checkLang)) { Flash::error('This language already in use. Please change the languages in the Category first!'); return Redirect::back(); } return $this->destroyFlashRedirect($language); }