소스 검색

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;
+	}
 }