public function destroy(Companiecateory $companiecateory)
 {
     if (is_integer($companiecateory)) {
         $companiecateory = Companiecateory::find($companiecateory);
     }
     $companiecateory->delete();
     Flash::success('Companiecateory has been created Deleted!');
     return Redirect::back();
 }
 public function destroy($companiecateory)
 {
     $companiecateory = Companiecateory::find($companiecateory);
     $companiecateory->delete();
     return response(['data' => true, 'status' => 'success', 'message' => 'successfully deleted']);
 }