Parcourir la source

Update Place model, add name method

Daniel Supernault il y a 4 ans
Parent
commit
9d1499eeb9
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  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;
+	}
 }