/** * @param $id * @return mixed */ public function edit($id) { $units = Unit::with('Property')->findOrFail($id); return \Response::json(['success' => true, 'message' => 'Unit Loaded.', 'data' => $units]); }