📜  laravel 调试栏不显示 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:41.938000             🧑  作者: Mango

代码示例2
Google Results raise issues of Debugbar not showing once installed

Lets debug the issue.

/* 
 * To Install The Debug Bar for your specific application
 * --dev ensure it be available during the development stages 
 *  only and does not go to the production 
 */
composer require barryvdh/laravel-debugbar --dev

/* At this stage the debugs bar is not shown. */
Step 1 : ensure that APP_DEBUG=true

/** It still does not work **/
/*
    Real Issue :
    Debug bar defines certain routes which need to optimize.
    Check the error.
    [2021-09-01 07:29:29] local.ERROR: Debugbar exception: Route [debugbar.openhandler] not defined.  
    [2021-09-01 07:34:36] local.ERROR: Debugbar exception: Route [debugbar.openhandler] not defined. 
*/

/** Cache all the config, routes and everything **/
php artisan optimize

/* The debug bar starts working */