Laravel¿ª·¢£ºÔõÑùʹÓÃLaravel Telescope¼à¿ØÓ¦ÓóÌÐò£¿
laravelÊÇÒ»¸öºÜÊÇÊܽӴýµÄphp¿ò¼Ü£¬ËüÊÇÒ»¸ö»ùÓÚmvc¼Ü¹¹µÄ¿ò¼Ü£¬¿ÉÒÔÓÃÀ´¿ìËÙ¿ª·¢webÓ¦ÓóÌÐò¡£¶ølaravel telescopeÊÇÒ»¸öÓÉtaylor otwell¹Ù·½Î¬»¤µÄ¿ªÔ´¹¤¾ß£¬Ëü¿ÉÒÔ×ÊÖúÎÒÃǸüºÃµØ¼à¿ØlaravelÓ¦ÓóÌÐò¡£
ÔÚLaravel¿ª·¢ÖУ¬Ê¹ÓÃLaravel Telescope¿ÉÒÔÇáËɵؼà¿ØÓ¦ÓóÌÐòÖеÄÊÂÎñ¡¢ÈÕÖ¾¡¢ÅÌÎʵÈÐÅÏ¢£¬Õâ¹ØÓÚ¿ª·¢ÕßÀ´ËµÊǺÜÊÇÓÐÓõġ£±¾ÎĽ«ÏÈÈÝÔõÑùʹÓÃLaravel Telescope¼à¿ØÓ¦ÓóÌÐò¡£
×°ÖÃLaravel Telescope
ÔÚʹÓÃLaravel Telescope֮ǰ£¬ÄãÐèÒªÔÚÄãµÄLaravelÓ¦ÓóÌÐòÖÐ×°ÖÃËü¡£¿ÉÒÔͨ¹ýʹÓÃComposer°ü¹ÜÀíÆ÷Íê³É×°Öã¬Ö´ÐÐÒÔÏÂÏÂÁ
composer require laravel/telescope
µÇ¼ºó¸´ÖÆ
ÔÚ×°ÖÃÍê³Éºó£¬ÄãÐèҪע²áLaravel TelescopeµÄЧÀÍÌṩÕߣ¬¿ÉÒÔÔÚconfig/app.phpÖеÄprovidersÊý×éÖоÙÐÐ×¢²á£º
'providers' => [ // other providers LaravelTelescopeTelescopeServiceProvider::class, ],
µÇ¼ºó¸´ÖÆ
½ÓÏÂÀ´£¬ÄãÐèÒªÔÚÖÕ¶ËÖÐÔËÐÐÒÔÏÂÏÂÁîÀ´Æô¶¯Laravel TelescopeµÄ×°ÖÃÀú³Ì£º
php artisan telescope:install
µÇ¼ºó¸´ÖÆ
ÔËÐÐÍê³Éºó£¬ÄãÐèÒªÔËÐÐǨáãÏÂÁîÀ´½¨ÉèTelescopeËùÐèµÄÊý¾Ý±í£º
php artisan migrate
µÇ¼ºó¸´ÖÆ
ÉèÖÃLaravel Telescope
ÔÚ×°ÖÃÍê³Éºó£¬ÄãÐèÒªÉèÖÃLaravel TelescopeÒÔʹÆäÊʺÏÄãµÄÓ¦ÓóÌÐò¡£¿ÉÒÔ·¿ªconfig/telescope.phpÎļþ¾ÙÐÐÉèÖá£
ÒÔÏÂÊÇÆäÖеÄһЩ³£¼ûÉèÖÃÏ
telescope.master_switch£ºÓÃÓÚÆôÓÃ/½ûÓÃLaravel TelescopeµÄ±ê¼Ç£»
telescope.storage.disk£ºÓÃÓÚÖ¸¶¨Laravel TelescopeҪʹÓõĴÅÅÌÀàÐÍ£»
telescope.entries£ºÓÃÓÚÖ¸¶¨Òª²¶»ñµÄÓ¦ÓóÌÐòÈë¿Ú¡£
ÓйØËùÓÐÉèÖÃÑ¡Ïî¼°Æä×÷Óõĸü¶àÐÅÏ¢£¬Çë°Ý¼ûLaravel Telescope¹Ù·½Îĵµ¡£
ʹÓÃLaravel Telescope
ʹÓÃLaravel TelescopeºÜ¼òÆÓ£¬Ö»ÐèÔÚä¯ÀÀÆ÷Öлá¼ûhttp://your-app.com/telescope¼´¿ÉÆô¶¯Laravel TelescopeµÄ¿ØÖÆÃæ°å¡£
ÔÚ¿ØÖÆÃæ°åÖУ¬Äã¿ÉÒÔ¿´µ½ÒÔϲÙ×÷£º
Ö÷¿´°å
ÕâÊÇLaravel TelescopeµÄÖ÷Ãæ°å£¬Ëü¸æËßÄãÓÐÄÄЩÇëÇóÕýÔÚ¾ÙÐС¢ÔËÐÐÁ˶೤ʱ¼äÒÔ¼°ËüÃǵÄÒÀÀµÏî¡£
ÅÌÎÊ
ÔÚLaravel TelescopeÖУ¬Äã¿ÉÒÔÖ±½ÓÉó²éÖ´ÐеÄÅÌÎÊ¡¢°ó¶¨²ÎÊýÒÔ¼°ÅÌÎʵÄÖ´ÐÐʱ¼äµÈÐÅÏ¢¡£ÕâÊÇÒ»¸öºÜÊÇÀû±ãµÄ¹¦Ð§£¬¿ÉÒÔ×ÊÖúÄã¸üºÃµØÓÅ»¯ÄãµÄÓ¦ÓóÌÐòÐÔÄÜ¡£
ÈÕÖ¾
Laravel Telescope»¹¿ÉÒÔÏÔʾÄãµÄÓ¦ÓóÌÐòlog£¬°üÀ¨¹ýʧÐÂÎÅÒÔ¼°Òì³£ÐÅÏ¢µÈ£¬ÒÔ±ãÄãÄܹ»¸ü¿ìµØÕÒµ½Ï¢Õù¾öÎÊÌâ¡£
Ä£×Ó
ʹÓÃLaravel Telescope£¬Äã¿ÉÒÔÉó²éÒѼÓÔصÄÄ£×Ó¡¢ËüÃǵÄÊôÐԺ͹ØϵµÈÐÅÏ¢¡£Õâ¹ØÓÚµ÷ÊÔÓëÄ£×ÓÏà¹ØµÄÎÊÌâºÜÊÇÓÐÓá£
ÊÂÎñ
ÔÚLaravel TelescopeÖУ¬Ä㻹¿ÉÒÔÉó²éÊÂÎñµÄÐÅÏ¢£¬°üÀ¨ÊÂÎñÃû³Æ¡¢´¥·¢Æ÷¡¢ÊÂÎñ´¦Àí³ÌÐòµÈ£¬ÒÔ±ãÄã¸üºÃµØ¸ú×ÙÓ¦ÓóÌÐòÖÐÊÂÎñµÄ´¥·¢ºÍ´¦Àí¡£
µç×ÓÓʼþ
ÔÚLaravel TelescopeÖУ¬Äã¿ÉÒÔÉó²éÓ¦ÓóÌÐò·¢³öµÄµç×ÓÓʼþ£¬°üÀ¨ÓʼþÖ÷Ìâ¡¢ÊÕ¼þÈË¡¢·¢¼þÈ˺ÍÓʼþÄÚÈݵÈÐÅÏ¢¡£
ÈÝÆ÷
ÈÝÆ÷Ãæ°å¿ÉÒÔÏÔʾÔÚÄãµÄÓ¦ÓóÌÐòÖÐ×¢²áµÄËùÓÐÈÝÆ÷ʵÀý¼°ÆäÒÀÀµÏî¡£Õâ¸ö¹¦Ð§¿ÉÒÔ×ÊÖúÄã¸üºÃµØÃ÷È·ºÍµ÷ÊÔÄãµÄÓ¦ÓóÌÐò¡£
×ܽá
Laravel TelescopeÊÇÒ»¸öºÜÊÇÓÐÓõĿª·¢¹¤¾ß£¬Ëü¿ÉÒÔʹLaravelÓ¦ÓóÌÐòµÄ¿ª·¢ºÍµ÷ÊÔÔ½·¢Àû±ãºÍ¸ßЧ¡£Í¨¹ý±¾ÎĵÄÏÈÈÝ£¬ÄãÖªµÀÔõÑù×°Öá¢ÉèÖúÍʹÓÃLaravel Telescope£¬ÐÅÍÐÔÚÄãµÄLaravel¿ª·¢ÖлáÓÐËù×ÊÖú¡£
ÒÔÉϾÍÊÇLaravel¿ª·¢£ºÔõÑùʹÓÃLaravel Telescope¼à¿ØÓ¦ÓóÌÐò£¿µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡