Update Newsroom model, add editUrl() method

This commit is contained in:
Daniel Supernault 2019-12-23 23:13:03 -07:00
parent 481954445e
commit fd7460c433
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -19,4 +19,9 @@ class Newsroom extends Model
return url("/site/newsroom/{$year}/{$month}/{$slug}");
}
public function editUrl()
{
return url("/i/admin/newsroom/edit/{$this->id}");
}
}