Example #1
0
 public function __construct(array $attributes = array())
 {
     parent::__construct($attributes);
     $config = \Config::getItems();
     $request = \Request::instance();
     if (isset($config['lapi::config']) && $request) {
         $this->bootstrapVisible($config, $request);
     }
 }
Example #2
0
 /**
  * Outputs gathered data to make Profiler
  *
  * @return html?
  */
 public function outputData()
 {
     // Check if profiler config file is present
     if (\Config::get('profiler::profiler')) {
         // Sort the view data alphabetically
         ksort($this->view_data);
         $this->time->totalTime();
         $data = array('times' => $this->time->getTimes(), 'view_data' => $this->view_data, 'app_logs' => $this->logs, 'includedFiles' => get_included_files(), 'counts' => $this->getCounts(), 'assetPath' => __DIR__ . '/../../../public/');
         // Check if SQL connection can be established
         try {
             $data['sql_log'] = \DB::getQueryLog();
         } catch (\PDOException $exception) {
             $data['sql_log'] = array();
         }
         // Check if btns.storage config option is set
         if (\Config::get('profiler::btns.storage')) {
             // get last 24 webserver log entries
             $data['storageLogs'] = $this->getStorageLogs(24);
         }
         // Check if btns.config config option is set
         if (\Config::get('profiler::btns.config')) {
             // get all Laravel config options and store in array
             $data['config'] = array_dot(\Config::getItems());
         }
         return \View::make('profiler::profiler.core', $data);
     }
 }
Example #3
0

		<div class="form-group row">
			<div class="text-right">
				<button type="submit" class="btn btn-default">Update</button>
			</div>
			<a id="test">test</a>
		</div>

	</form>

	<div class="text-center">
		@include('slate::site.partials.form-errors')
	</div>

<pre>
	<?php 
print_r([Config::get('slate::config.site-name'), Config::getItems()]);
?>
</pre>
</div>

<script type="text/javascript">
	$(document).ready(function($) {
		
	
		$("#test").click(function(event) {
			alert("{{ Config::get('slate::site-name') }}");
		});
	});	
</script>