Carbon::parse($value)->format('D, M jS o, g:i A'), ); } /** --------------------------------------- * RELATIONSHIPS * --------------------------------------- */ /** The person that wrote the article. */ public function author(): BelongsTo { return $this->belongsTo(Author::class); } /** --------------------------------------- * MODEL METHODS * --------------------------------------- */ public function convertMarkdownToMarkup() { if (is_null($this->markdown_body)) return null; $this->body = Str::of($this->markdown_body)->markdown([ 'html_input' => 'strip', 'allow_unsafe_links' => false, ]); } }