Skip to content

Instantly share code, notes, and snippets.

@crynobone
Created March 8, 2013 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crynobone/5118532 to your computer and use it in GitHub Desktop.
Save crynobone/5118532 to your computer and use it in GitHub Desktop.
Enabling Profiler only for Orchestra Platform Administrator Account
<?php
Route::filter('before', function ()
{
if (Orchestra::acl()->can('Manage Orchestra'))
{
Config::set('application.profiler', true);
Config::set('error.detail', true);
Profiler::attach();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment