'integer', 'debit' => 'integer', 'post_date' => 'datetime', 'tags' => 'array', ]; //protected $dateFormat = 'Y-m-d'; protected $dates = [ 'created_at', 'updated_at', 'post_date', ]; /** * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function journal() { return $this->belongsTo(Journal::class); } /** * @param string $currency */ public function setCurrency($currency) { $this->currency = $currency; } }