Explorar el Código

Update Story model

Daniel Supernault hace 5 años
padre
commit
034fdb4d42
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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");
+	}
 }