public function getTess() { return $this->hasOne(Tes::className(), ['KD_RO' => 'KD_RO']); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { Tes::find($id)->delete(); return Redirect::route('test.show'); }