コード例 #1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param $id
  * @return Response
  */
 public function getCategoryDelete($id, $id2)
 {
     $objects = ObjectMeta::getAllMeta($id, '_category_id', $id2);
     if ($objects) {
         $objects->delete();
     }
     //        if()
     //        $objecttype = ObjectType::find($request->get('id'));
     // Show the page
     return redirect('admin/object-types/' . $id . '/edit#tab-categories')->with('message', 'Category deleted successfully');
 }