<?php

namespace BoomCMS\Foundation\Database;

use Illuminate\Database\Eloquent\Model as BaseModel;
use Illuminate\Support\Traits\Macroable;

abstract class Model extends BaseModel
{
    use Macroable;

    const ATTR_ID = 'id';

    public $guarded = [
        self::ATTR_ID,
    ];

    protected $casts = [
        self::ATTR_ID => 'integer',
    ];

    public $timestamps = false;

    /**
     * @return int
     */
    public function getId()
    {
        return $this->{static::ATTR_ID};
    }
}

<?php

namespace BoomCMS\Foundation\Database;

use Illuminate\Database\Eloquent\Model as BaseModel;

abstract class Model extends BaseModel
{
    const ATTR_ID = 'id';

    public $guarded = [
        self::ATTR_ID,
    ];

    protected $casts = [
        self::ATTR_ID => 'integer',
    ];

    public $timestamps = false;

    /**
     * @return int
     */
    public function getId()
    {
        return $this->{static::ATTR_ID};
    }
}

Revert "Added the macroable trait to model classes"
Revert "Added the macroable trait to model classes"

This reverts commit d64c59c83f686d48a78b5e290792c7484d1ed174.
