diff --git a/app/Story.php b/app/Story.php index 30d0f212b..b80101aec 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"); + } }