Laravel¿ª·¢£ºÔõÑùʹÓÃLaravel Telescope¼à¿ØLaravelÓ¦ÓóÌÐò£¿
laravelÊÇÒ»¸öÊ¢ÐеÄphp¿ò¼Ü£¬ËüÌṩÁËÐí¶à¹¤¾ßºÍ¿â£¬Ê¹¿ª·¢Ö°Ô±Äܹ»¿ìËÙ¿ª·¢¸ßÖÊÁ¿µÄwebÓ¦ÓóÌÐò¡£ÆäÖÐÒ»¸öºÜÊÇÓÐÓõŤ¾ßÊÇlaravel telescope£¬ËüÊÇÒ»¸ö¿ªÔ´µÄµ÷ÊÔ¹¤¾ß£¬Äܹ»×ÊÖú¿ª·¢Ö°Ô±¸üÇáËɵؼà¿ØËûÃǵÄlaravelÓ¦ÓóÌÐò¡£ÔÚ±¾ÎÄÖУ¬ÎÒÃǽ«ÏÈÈÝÔõÑùʹÓÃlaravel telescope¼à¿ØlaravelÓ¦ÓóÌÐò¡£
Laravel TelescopeÊÇʲô£¿
Laravel TelescopeÊÇLaravelÉçÇø¿ªÔ´µÄÒ»¸öµ÷ÊÔ¹¤¾ß£¬ËüΪ¿ª·¢Ö°Ô±ÌṩÁËÒ»¸ö¼òÆÓÒ×ÓõÄWeb½çÃ棬ÓÃÓÚ¼à¿ØLaravelÓ¦ÓóÌÐòµÄÖÖÖÖÒªº¦×é¼þ£¬ÈçÇëÇó¡¢ÅÌÎÊ¡¢ÊÂÎñ¡¢ÐÐÁС¢Ê¹ÃüµÈ¡£Laravel TelescopeÊÇÒ»¸öºÜÊÇÇ¿Ê¢ºÍÎÞаµÄ¹¤¾ß£¬Ëü¿ÉÒÔ×ÊÖú¿ª·¢Ö°Ô±¿ìËÙ¶¨Î»Ï¢Õù¾öËûÃǵÄÓ¦ÓóÌÐòÖеÄÄÇЩÎÊÌâ¡£
×°ÖÃLaravel Telescope
ÔÚ×îÏÈʹÓÃLaravel Telescope֮ǰ£¬ÎÒÃÇÐèÒª½«Æä×°Öõ½×ðÁú¿Ê±LaravelÓ¦ÓóÌÐòÖС£ÎÒÃÇ¿ÉÒÔʹÓÃComposer°ü¹ÜÀíÆ÷À´×°ÖÃLaravel Telescope¡£ÔÚÖն˴°¿ÚÖУ¬µ¼º½µ½×ðÁú¿Ê±LaravelÓ¦ÓóÌÐòĿ¼²¢ÔËÐÐÒÔÏÂÏÂÁ
composer require laravel/telescope
µÇ¼ºó¸´ÖÆ
Õ⽫ÏÂÔز¢×°ÖÃ×îа汾µÄLaravel Telescope°ü£¬²¢½«ÆäÌí¼Óµ½×ðÁú¿Ê±ÏîÄ¿ÒÀÀµÁбíÖС£
½ÓÏÂÀ´£¬ÎÒÃÇÐèÒªÔÚ×ðÁú¿Ê±Ó¦ÓóÌÐòÖÐ×¢²áLaravel TelescopeЧÀÍÌṩÕߣ¬ÒÔ±ã¿ÉÒÔʹÓÃËü¡£·¿ªconfig/app.phpÎļþ£¬ÕÒµ½providersÊý×飬²¢ÔÚÆäĩβÌí¼ÓÒÔÏÂÐУº
TelescopeTelescopeServiceProvider::class,
µÇ¼ºó¸´ÖÆ
ÉúÑIJ¢¹Ø±ÕÎļþ£¬È»ºóÔÚÏÂÁîÐÐÖÐÔËÐÐÒÔÏÂÏÂÁîÒÔÐû²¼Laravel TelescopeµÄ×ʲúºÍÉèÖÃÎļþ£º
php artisan telescope:install
µÇ¼ºó¸´ÖÆ
Õ⽫Ïò×ðÁú¿Ê±Ó¦ÓóÌÐòÌí¼ÓËùÐèµÄLaravel TelescopeÉèÖÃÎļþ¡¢×ÊÔ´ÎļþºÍÊý¾Ý¿âǨáãÎļþ¡£
×îºó£¬ÎÒÃÇÐèÒªÔËÐÐÊý¾Ý¿âǨá㣬ÒÔ±ãÔÚ×ðÁú¿Ê±Ó¦ÓóÌÐòÖн¨ÉèËùÐèµÄTelescope±í¡£ÔÚÖն˴°¿ÚÖУ¬ÔËÐÐÒÔÏÂÏÂÁ
php artisan migrate
µÇ¼ºó¸´ÖÆ
ÏÖÔÚ£¬ÎÒÃÇÒѾÀֳɽ«Laravel Telescope×°Öõ½×ðÁú¿Ê±LaravelÓ¦ÓóÌÐòÖУ¬²¢×¼±¸ÐÒ¿÷×ðÁú¿Ê±Ó¦ÓóÌÐòÉÏÆôÓÃËü¡£
ÆôÓÃLaravel Telescope
ΪÁËÆôÓÃLaravel Telescope£¬ÎÒÃÇÐèÒªÔÚ×ðÁú¿Ê±Ó¦ÓóÌÐòµÄhttps://example.com/telescope·ÓÉÉÏ×¢²áTelescope·ÓÉ¡£ÔÚLaravel 5.5Ö®ºóµÄ°æ±¾ÖУ¬Õâ¿ÉÒÔͨ¹ýÔÚroutes/web.phpÎļþÖÐÌí¼ÓÒÔÏÂÐÐÀ´Íê³É£º
Route::telescope();
µÇ¼ºó¸´ÖÆ
ƾ֤ÉÏÊö°ì·¨¾ÙÐвÙ×÷ºó£¬×ðÁú¿Ê±Ó¦ÓóÌÐò¾Í¿ÉÒÔʹÓÃLaravel TelescopeÀ´¼à¿ØÖÖÖÖÒªº¦×é¼þÁË¡£ÔÚÏÂÒ»½ÚÖУ¬ÎÒÃǽ«ÏêϸÏÈÈÝLaravel TelescopeµÄһЩÖ÷Òª¹¦Ð§ºÍÓ÷¨¡£
ʹÓÃLaravel Telescope¼à¿ØLaravelÓ¦ÓóÌÐò
Laravel TelescopeÌṩÁËÐí¶àÓÐÓõĹ¦Ð§£¬¿ÉÒÔ×ÊÖúÎÒÃǼà¿ØLaravelÓ¦ÓóÌÐòµÄÖÖÖÖÒªº¦×é¼þ¡£ÒÔÏÂÊÇһЩʹÓÃLaravel Telescope¿ÉÒÔÍê³ÉµÄʹÃü£º
¼à¿ØÓ¦ÓóÌÐòµÄÇëÇóºÍÏìÓ¦
Laravel Telescope¿ÉÒÔ×ÊÖúÎÒÃǼà¿ØÓ¦ÓóÌÐòµÄHTTPÇëÇóºÍÏìÓ¦¡£ÎÒÃÇ¿ÉÒÔʹÓÃËüÀ´Éó²éÿ¸öÇëÇóµÄÏìӦʱ¼ä¡¢×´Ì¬Âë¡¢ÇëÇóÍ·ºÍÏìÓ¦ÌåµÈÐÅÏ¢¡£±ðµÄ£¬Laravel Telescope»¹¿ÉÒÔ×ÊÖúÎÒÃÇÉó²éÇëÇóºÍÏìÓ¦Ö®¼äµÄÖнé¼þºÍÊÂÎñ¡£
¼à¿ØÓ¦ÓóÌÐòµÄÊý¾Ý¿â²Ù×÷
Laravel Telescope¿ÉÒÔ×ÊÖúÎÒÃǼà¿ØÓ¦ÓóÌÐòµÄÊý¾Ý¿â²Ù×÷¡£ÎÒÃÇ¿ÉÒÔʹÓÃËüÀ´Éó²éÅÌÎÊÖ´ÐеÄSQLÓï¾ä¡¢°ó¶¨µÄ²ÎÊýºÍÖ´ÐÐʱ¼äµÈÐÅÏ¢¡£±ðµÄ£¬Laravel Telescope»¹¿ÉÒÔ×ÊÖúÎÒÃÇÉó²éÅÌÎʱ¬·¢µÄÈÕÖ¾ºÍÒì³£¡£
¼à¿ØÓ¦ÓóÌÐòµÄÐÐÁкÍʹÃü
Laravel Telescope¿ÉÒÔ×ÊÖúÎÒÃǼà¿ØÓ¦ÓóÌÐòµÄÐÐÁкÍʹÃü¡£ÎÒÃÇ¿ÉÒÔʹÓÃËüÀ´Éó²éÐÐÁÐÖ´ÐеÄ×÷Òµ¡¢×÷ÒµµÄ״̬¡¢×÷ÒµÖÐʹÓõÄÊý¾ÝÒÔ¼°×÷ÒµÖ´ÐеÄʱ¼äµÈÐÅÏ¢¡£±ðµÄ£¬Laravel Telescope»¹¿ÉÒÔ×ÊÖúÎÒÃÇÉó²é×÷Òµ±¬·¢µÄÈÕÖ¾ºÍÒì³£¡£
¼à¿ØÓ¦ÓóÌÐòµÄÊÂÎñºÍ¼àÌýÆ÷
Laravel Telescope¿ÉÒÔ×ÊÖúÎÒÃǼà¿ØÓ¦ÓóÌÐòµÄÊÂÎñºÍ¼àÌýÆ÷¡£ÎÒÃÇ¿ÉÒÔʹÓÃËüÀ´Éó²éÊÂÎñ´¥·¢ºÍ¼àÌýµÄÏêϸÐÅÏ¢£¬°üÀ¨ÊÂÎñÃû³Æ¡¢¼àÌýÆ÷ÀàÃû¡¢´¦Öóͷ£³ÌÐòºÍÖ´ÐÐʱ¼äµÈ¡£±ðµÄ£¬Laravel Telescope»¹¿ÉÒÔ×ÊÖúÎÒÃÇÉó²éÊÂÎñ±¬·¢µÄÈÕÖ¾ºÍÒì³£¡£
¼à¿ØÓ¦ÓóÌÐòµÄ»º´æºÍÎļþϵͳ
Laravel Telescope¿ÉÒÔ×ÊÖúÎÒÃǼà¿ØÓ¦ÓóÌÐòµÄ»º´æºÍÎļþϵͳ¡£ÎÒÃÇ¿ÉÒÔʹÓÃËüÀ´Éó²é»º´æºÍÎļþϵͳµÄ״̬¡¢Ê¹ÓÃÇéÐκÍÐÔÄÜ¡£±ðµÄ£¬Laravel Telescope»¹¿ÉÒÔ×ÊÖúÎÒÃÇÉó²é»º´æºÍÎļþϵͳ±¬·¢µÄÈÕÖ¾ºÍÒì³£¡£
×ܽá
ÔÚ±¾ÎÄÖУ¬ÎÒÃÇÏÈÈÝÁËÔõÑùʹÓÃLaravel Telescope¼à¿ØLaravelÓ¦ÓóÌÐò¡£ÎÒÃÇÌÖÂÛÁËLaravel TelescopeµÄһЩÖ÷Òª¹¦Ð§ºÍÓ÷¨£¬°üÀ¨¼à¿ØÓ¦ÓóÌÐòµÄÇëÇóºÍÏìÓ¦¡¢Êý¾Ý¿â²Ù×÷¡¢ÐÐÁкÍʹÃü¡¢ÊÂÎñºÍ¼àÌýÆ÷ÒÔ¼°»º´æºÍÎļþϵͳµÈ¡£ÎÒÃÇ»¹ÏÈÈÝÁËÔõÑù×°ÖúÍÆôÓÃLaravel Telescope£¬ÒÔ¼°ÔõÑù½«Ëü¼¯³Éµ½×ðÁú¿Ê±LaravelÓ¦ÓóÌÐòÖС£Ê¹ÓÃLaravel Telescope¿ÉÒÔ×ÊÖúÎÒÃǸüÇáËɵؿª·¢ºÍά»¤¸ßÖÊÁ¿µÄLaravelÓ¦ÓóÌÐò¡£
ÒÔÉϾÍÊÇLaravel¿ª·¢£ºÔõÑùʹÓÃLaravel Telescope¼à¿ØLaravelÓ¦ÓóÌÐò£¿µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡