浏览代码

Update Place model, add name method

Daniel Supernault 4 年之前
父节点
当前提交
9d1499eeb9
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      app/Place.php

+ 5 - 0
app/Place.php

@@ -40,4 +40,9 @@ class Place extends Model
 	{
 		return $this->url();
 	}
+
+	public function getName()
+	{
+		return $this->name . ', ' . $this->country;
+	}
 }