/** * Listen to logging events * * @return void */ protected function listenLogs() { $this->app['events']->listen('illuminate.log', function ($type, $message) { \Omni::addLog($type, $message); }); }
<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>