classes/Models/Change.php
static protected function createLog(
        Model $model,
        $action,
        Admin $admin = null,
        $changed = null)
    {
        return static::create([
            'model' => get_class($model),
            'key' => $model->getKey(),
            'action' => $action,
            'title' => static::getModelTitle($model),
            'changed' => $changed,
            'admin_id' => static::getAdminId($admin),
        ]);
    }
static protected function createLog(
        Model $model,
        $action,
        Admin $admin = null,
        $changed = null)
    {
        return static::create([
            'model' => get_class($model),
            'key' => $model->getKey(),
            'action' => $action,
            'title' => static::getModelTitle($model),
            'changed' => $changed,
            'admin_id' => static::getAdminId($admin),
        ]);
    }
static protected function createLog ( Model $ model , $ action , Admin $ admin = null , $ changed = null ) { return static :: create ( [ 'model' => get_class ( $ model ) , 'key' => $ model -> getKey ( ) , 'action' => $ action , 'title' => static :: getModelTitle ( $ model ) , 'changed' => $ changed , 'admin_id' => static :: getAdminId ( $ admin ) , ] ) ; }
Create a change entry

@param  Model  $model  Th
@param  string $action
@param  Admin  $admin
Create a change entry