ソースを参照

Update Story model

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