Atrybuty niestandardowe laravel

<?php
...

class Movie extends Model
{

    protected $appends = ['cover'];

    //define accessor
    public function getCoverAttribute()
    {
        return json_decode($this->InJson)->cover;
    }
}
Tiago F2