Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

miguelcamargo9's avatar

VentureCraft

Hi,

I am implementing a package for logs of a specific model , I investigated and found VentureCraft , and install it, but when you deploy it does not work, anyone can help me ?


class Devices extends Eloquent {

    use \Venturecraft\Revisionable\RevisionableTrait;

    /**
     * The database table used by the model.
     *
     * @var string
     */
    protected $connection = 'mysql';
    protected $table = 'glpi_networking';
    protected $revisionEnabled = true;
    public $timestamps = false;
}

Controller

<?php

class LogController extends BaseController {

    public function showLog() {
        $device= Devices::find(1423);
        $history = $device->revisionHistory;
        return View::make('LogController.logresult', array('history' => $history));
    }
}

View

Resultado: {{count($history)}}
<pre>
    <?php print_r($history); ?>
</pre>

this return 0.

thx!

0 likes
0 replies

Please or to participate in this conversation.