Skip to content

Commit 19e1c88

Browse files
committed
FIX: path to view the post publically
1 parent cdd9f0b commit 19e1c88

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Post.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,9 @@ public static function boot()
5656
$post->tags()->detach();
5757
});
5858
}
59+
60+
public function path()
61+
{
62+
return "/posts/{$this->slug}";
63+
}
5964
}

0 commit comments

Comments
 (0)