public function getDelete($id) { $identity = Identity::find($id); $identity->delete(); Session::flash('message', 'The records are deleted successfully'); return Redirect::to('identity'); }