Explorar el Código

Update Place model, add name method

Daniel Supernault hace 4 años
padre
commit
9d1499eeb9
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      app/Place.php

+ 5 - 0
app/Place.php

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