Update Story model

This commit is contained in:
Daniel Supernault 2020-01-05 21:53:09 -07:00
parent 7654205408
commit 034fdb4d42
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -46,4 +46,9 @@ class Story extends Model
->whereProfileId(Auth::user()->profile->id) ->whereProfileId(Auth::user()->profile->id)
->exists(); ->exists();
} }
public function permalink()
{
return url("/story/$this->id");
}
} }