From 034fdb4d42b906c5dca064a627990e4a8dae8853 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 5 Jan 2020 21:53:09 -0700 Subject: [PATCH] Update Story model --- app/Story.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Story.php b/app/Story.php index 30d0f212..b80101ae 100644 --- a/app/Story.php +++ b/app/Story.php @@ -46,4 +46,9 @@ class Story extends Model ->whereProfileId(Auth::user()->profile->id) ->exists(); } + + public function permalink() + { + return url("/story/$this->id"); + } }