尊龙凯时人生就是搏

laravel debugbar·ÅÔÚÄÇÀï

ÔÚ laravel Ó¦ÓóÌÐòÖÐ £¬laravel debugbar ÊÇÒ»ÖÖºÜÊÇÓÐÓõĵ÷ÊÔ¹¤¾ß £¬Ëü¿ÉÒÔ×ÊÖú¿ª·¢Ö°Ô±¿ìËÙ¼ì²âÏ¢Õù¾öÓ¦ÓóÌÐòÖеĹýʧºÍÎÊÌâ¡£ÄÇô £¬laravel debugbar Ó¦¸Ã·ÅÔÚÄÇÀïÄØ£¿

Ê×ÏÈ £¬ÐèÒªÔÚÓ¦ÓóÌÐòÖÐ×°Öà Laravel Debugbar¡£¿ÉÒÔͨ¹ý Composer ÏÂÁîÀ´×°Öãº

composer require barryvdh/laravel-debugbar --dev

µÇ¼ºó¸´ÖÆ

×°ÖÃÍê³Éºó £¬ÐèÒªÉèÖà Laravel Debugbar £¬ÒÔ±ãÔÚÓ¦ÓóÌÐòÖÐʹÓá£ÔÚ config/app.php ÎļþÖÐ £¬ÐèÒª½« BarryvdhDebugbarServiceProvider ÀàÌí¼Óµ½Ð§ÀÍÌṩÕßÊý×éÖУº

'providers' => [
    // ...
    BarryvdhDebugbarServiceProvider::class,
],

µÇ¼ºó¸´ÖÆ

È»ºó £¬ÔÚ config/app.php ÎļþµÄ aliases Êý×éÖÐ £¬ÐèÒª½« Debugbar ÀàÌí¼ÓΪÓÖÃû£º

'aliases' => [
    // ...
    'Debugbar' => BarryvdhDebugbarFacade::class,
],

µÇ¼ºó¸´ÖÆ

ÏÖÔÚ £¬Laravel Debugbar ÒѾ­×°Öò¢ÉèÖÃÍê³ÉÁË¡£¿ÉÊÇ £¬Ëü»¹Ã»Óа²ÅÅÔÚ׼ȷµÄλÖá£

½« Laravel Debugbar °²ÅÅÔڽṹÎļþÖÐ

Laravel Debugbar ×î³£¼ûµÄÓ÷¨Êǽ«Ëü·ÅÔÚÓ¦ÓóÌÐòµÄ½á¹¹ÎļþÖÐ £¬ÒÔ±ãÔÚËùÓÐÒ³ÃæÖж¼Äܹ»¿´µ½Ëü¡£ÔÚ Laravel ÖÐ £¬½á¹¹Îļþͨ³£ÊÇ resources/views/layouts/app.blade.php Îļþ £¬ÆäÖаüÀ¨Ó¦ÓóÌÐòµÄ¹²Ïí²¿·Ö £¬Èçҳü¡¢Ò³½ÅºÍµ¼º½²Ëµ¥µÈ¡£

Òª½« Laravel Debugbar °²ÅÅÔڽṹÎļþÖÐ £¬ÐèÒªÔÚ app.blade.php ÎļþÖÐÌí¼ÓÒÔÏ´úÂ룺

<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
    <head>
        <!-- Ò³ÃæÍ·²¿´úÂë -->
    </head>
    <body>
        <!-- Debugbar ×îÏÈ -->
        {!! Debugbar::render() !!}
        <!-- Debugbar ¿¢Ê -->
        
        <!-- Ò³ÃæÖ÷Ìå´úÂë -->
        
        <!-- Ò³Ãæµ×²¿´úÂë -->
    </body>
</html>

µÇ¼ºó¸´ÖÆ

ÔÚÉÏÃæµÄ´úÂëÖÐ £¬Debugbar::render() ÒªÁìÓÃÓÚäÖȾ Laravel Debugbar £¬ÕâÑùËü¾Í»á·ºÆðÔÚÒ³ÃæµÄ×óϽÇ¡£Äú¿ÉÒÔͨ¹ýÔÚ config/debugbar.php ÎļþÖÐÉèÖà “position” Ñ¡ÏîÀ´¸ü¸Äµ÷ÊÔÀ¸µÄλÖá£

ÏÖÔÚ £¬Ã¿µ±ÄúµÄÓ¦ÓóÌÐòʹÓýṹÎļþäÖȾÐÂÒ³Ãæʱ £¬Laravel Debugbar ¾Í»á·ºÆðÔÚÒ³ÃæµÄµ×²¿¡£

½« Laravel Debugbar °²ÅÅÔÚÌض¨µÄÊÓͼÎļþÖÐ

ÓÐʱ £¬Äú¿ÉÄÜÏ£ÍûÔÚÌض¨µÄÊÓͼÎļþÖÐʹÓà Laravel Debugbar £¬¶ø²»ÊÇÔÚËùÓÐÒ³ÃæÖж¼Ê¹Óá£ÔÚÕâÖÖÇéÐÎÏ £¬¿ÉÒÔÔÚÏìÓ¦µÄÊÓͼÎļþÖÐÌí¼ÓÒÔÏ´úÂ룺

@extends('layouts.app')

@section('content')
    <!-- Debugbar ×îÏÈ -->
    {!! Debugbar::render() !!}
    <!-- Debugbar ¿¢Ê -->
    
    <!-- Ò³ÃæÄÚÈÝ -->
@endsection

µÇ¼ºó¸´ÖÆ

ÔÚÉÏÃæµÄ´úÂëÖÐ £¬ÎÒÃǽ« Debugbar::render() ÒªÁìǶÈëµ½ÁËÊÓͼÎļþµÄÄÚÈݲ¿·ÖÖÐ £¬ÕâÑù Laravel Debugbar ¾Í»á·ºÆðÔÚÊÓͼÎļþµÄµ×²¿¡£

×ܽá

ÎÞÂÛÄúÊǽ« Laravel Debugbar °²ÅÅÔÚÓ¦ÓóÌÐòµÄ½á¹¹ÎļþÖÐ £¬ÕÕ¾ÉÔÚÌض¨µÄÊÓͼÎļþÖÐʹÓÃËü £¬¶¼ÐèÒªÏÈ×°ÖúÍÉèÖÃËü £¬²¢½«Ïà¹ØµÄ´úÂëÌí¼Óµ½ÏìÓ¦µÄÎļþÖС£Äú¿ÉÒÔͨ¹ýƾ֤ÏîÄ¿ÐèÇó×Ô½ç˵ Laravel Debugbar µÄλÖá¢ÑùʽºÍ¹¦Ð§À´ÊµÏÖ¸üºÃµÄ¿ª·¢ÌåÑé¡£

ÒÔÉϾÍÊÇlaravel debugbar·ÅÔÚÄÇÀïµÄÏêϸÄÚÈÝ £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí £¬°æȨÕùÒéÓë±¾Õ¾ÎÞ¹Ø £¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í尊龙凯时人生就是搏ÂËÓÍ»úÍø¹Ù·½Ì¬¶È £¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ £¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢ £¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢ £¬ÇëÄúÁ¬Ã¦ÁªÏµ尊龙凯时人生就是搏ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ尊龙凯时人生就是搏

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎå £¬9:30-18:30 £¬½ÚãåÈÕÐÝÏ¢

QR code
sitemap¡¢ÍøÕ¾µØͼ