Update Story model

pull/1906/head
Daniel Supernault 5 years ago
parent 7654205408
commit 034fdb4d42
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -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");
}
} }

Loading…
Cancel
Save