Example #1
0
 public function deleteDorm($id)
 {
     $dorm = Dorm::find($id);
     $dorm->delete();
     return redirect("admin/dorms")->with("success", "Dom je obrisan.");
 }
Example #2
0
 public function getDorm($id)
 {
     $dorm = Dorm::find($id);
     return $dorm;
 }