Enabling Profiler only for Orchestra Platform Administrator Account
Here a simple way to use Route::filter()
to enable profiler just 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();
}
});
Written by Mior Muhammad Zaki
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Laravel
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#