PHP Docs @proptery for Ledgers model

Feature or problem being solved

It would allow modern IDEs to typehint the available model properties

Further details

A possible implementation could be like this in /Models/Ledger.php

/**
 * @property int id
 * @property string user_type
 * @property int user_id
 * @property string recordable_type
 * @property int recordable_id
 * @property string context
 * @property string event
 * @property string|array properties
 * @property string|array modified
 * @property string|array pivot
 * @property string|array extra
 * @property string url
 * @property string ip_address
 * @property string user_agent
 * @property string signature
 * @property \Illuminate\Support\Carbon created_at
 * @property \Illuminate\Support\Carbon updated_at
 */
class Ledger extends Model implements \Altek\Accountant\Contracts\Ledger
{
...

The additional documentation would be noticeable if you instantiate a Ledgers model and want to persist it by yourself or just work with the given data.

before

image

after

image