From fd7460c43323de8fc791c5252802230c5e140c69 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 23 Dec 2019 23:13:03 -0700 Subject: [PATCH] Update Newsroom model, add editUrl() method --- app/Newsroom.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Newsroom.php b/app/Newsroom.php index ad92d7b4..eca57eaf 100644 --- a/app/Newsroom.php +++ b/app/Newsroom.php @@ -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}"); + } }