Feb 22, 2016
0
Level 1
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!
Please or to participate in this conversation.