티스토리 뷰

웹프로그래밍/PHP

Laravel 5 debugbar 설치

공허공자 2015. 12. 6. 21:39

Reference

https://github.com/barryvdh/laravel-debugbar
https://github.com/barryvdh/laravel-debugbar/issues/387


Execute in Terminal

composer require barryvdh/laravel-debugbar ">=2.0" --dev


Add to config/app.php

providers[] :

Barryvdh\Debugbar\ServiceProvider::class,

alias[] :

Barryvdh\Debugbar\ServiceProvider::class,


Execute in Terminal

php artisan vendor:publish


Add to app/Http/routes.php:

Route::get('/_debugbar/assets/stylesheets', [
    'as' => 'debugbar-css',
    'uses' => '\Barryvdh\Debugbar\Controllers\AssetController@css'
]);

Route::get('/_debugbar/assets/javascript', [
    'as' => 'debugbar-js',
    'uses' => '\Barryvdh\Debugbar\Controllers\AssetController@js'
]);

Route::get('/_debugbar/open', [
    'as' => 'debugbar-open',
    'uses' => '\Barryvdh\Debugbar\Controllers\OpenController@handler'
]);


댓글