Aug 27, 2015
6
Level 55
Laravel, VueJS, and Carbon
I am building an extremely simple blog, that only I can write posts for (my personal website).
I would like to use VueJS so I can take advantage of filters.
-
I would like to load all posts (maybe infinite scroll) or just get all the titles, and load the body of the blog post when needed.
-
When I have played around with Laravel and VueJS, I can use
v-repeatwhich is great and I can get things like thepublished_attimestamp, however, how do I useCarbonwith it? Things likepublished_at->diffForHumans()?
I'm looking for some advice; is this even possible (referring to using Carbon too)?
Please or to participate in this conversation.