コード例 #1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     Tasks::destroy($id);
     \Toastr::error('Task deleted', 'Success');
     return redirect('/tasks');
 }