Pārlūkot izejas kodu

Update Place model, add name method

Daniel Supernault 4 gadi atpakaļ
vecāks
revīzija
9d1499eeb9
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  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;
+	}
 }