0

I have a query in Laravel made with the query builder, and because of this i can not use the Carbon format() function. What other way can i do it so my timestamp shows up as for example 23 March, 2015. thankyou

4

1 回答 1

0

Carbon 是一个库,可以产生与 php date() 函数类似的输出。所以你可以用 date() 函数替换它,传递一个格式字符串,我认为 'd M, Y' 会给你想要的。

于 2015-03-29T15:51:46.920 回答