Explorar o código

Update Place model, add name method

Daniel Supernault %!s(int64=4) %!d(string=hai) anos
pai
achega
9d1499eeb9
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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;
+	}
 }