Update Place model, add name method

This commit is contained in:
Daniel Supernault 2020-11-27 14:22:05 -07:00
parent 576cc82ec5
commit 9d1499eeb9
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 5 additions and 0 deletions

View File

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