Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {{ $content->updated_at->tz('UTC')->toAtomString() }}
- {{ CarbonCarbon::parse($content->updated_at)->tz('UTC')->toAtomString() }}
- @if ($content->updated_at)
- <lastmod>{{ ($content->updated_at)->tz('UTC')->toAtomString() }}</lastmod>
- @endif
- class Article extends Model
- {
- protected $casts = [
- // ... другие поля.
- 'created_at' => 'datetime',
- 'updated_at' => 'datetime',
- ];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement