Daniel Supernault пре 5 година
родитељ
комит
034fdb4d42
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      app/Story.php

+ 5 - 0
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");
+	}
 }