/** * * @param $id * @return Response */ public function destroy($id) { $transaction = Property::findOrFail($id); $transaction->delete(); return \Response::json(['success' => true, 'message' => 'Property Deleted.', 'data' => []]); }
public static function getOne($id) { return Property::findOrFail($id); }