示例#1
0
 /**
  * Listen to logging events
  *
  * @return void
  */
 protected function listenLogs()
 {
     $this->app['events']->listen('illuminate.log', function ($type, $message) {
         \Omni::addLog($type, $message);
     });
 }
示例#2
0
<table>
    <tr>
        <th>Variable Name</th>
        <th>Value</th>
    </tr>
    @foreach($view_data as $key => $value)
    <tr>
        <td>{{ $key }}</td>
        @if($is_array = is_array($value))
            <?php 
$value = Omni::cleanArray($value);
?>
            <td><pre>{{ print_r($value, true) }}</pre></td>
        @else
            <td>{{ $value }}</td>
        @endif
    </tr>
    @endforeach
</table>