/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { $a = assign::where('id_client', '=', $id)->get(); assign::destroy($a[0]["attributes"]["id"]); Session::flash('flash_message', 'assign successfully deleted!'); return redirect('assign'); }