Daniel Supernault 5 лет назад
Родитель
Сommit
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)
 			->whereProfileId(Auth::user()->profile->id)
 			->exists();
 			->exists();
 	}
 	}
+
+	public function permalink()
+	{
+		return url("/story/$this->id");
+	}
 }
 }