delete() public method

Delete a link.
public delete ( integer $id )
$id integer
Example #1
0
 /**
  * Delete a link.
  *
  * /admin/links/{id} delete
  *
  * @param  integer $id
  *
  * @return \Illuminate\Http\JsonResponse
  */
 public function destory($id)
 {
     $this->links->delete($id);
     Log::info(lang('log.deleteLinkSuccess', 'You delete a link.'));
     return $this->responseJson(['message' => '删除成功']);
 }