How can I install debugbar in Laravel?












0
















( ! ) Fatal error: Cannot redeclare measure() (previously declared in C:wamp64wwwacellemailllvendorbarryvdhlaravel-debugbarsrchelpers.php:77) in C:wamp64wwwacellemailllappHelpershelpers.php on line 427











share|improve this question

























  • Please describe why installing "debugbar" will resolve your issue? Accordingly to the error message you have it installed already. github.com/barryvdh/laravel-debugbar

    – LazyOne
    Apr 15 '18 at 9:14











  • After i install the debugbar it shows that message and the project doesn't run anymore; what i meant is how can i install it without this error

    – yahya boudahra
    Apr 16 '18 at 8:55











  • The error is in YOUR code (...acellemailllappHelpershelpers.php file). You are re-declaring the global function named measure() that is already defined by Laravel Debugbar package. You cannot do that -- it's basic PHP knowledge. Give your function another name... or get rid of Laravel Debugbar package so it does not introduce that function in first place.

    – LazyOne
    Apr 16 '18 at 9:39













  • i changed the function name in my code and it still doesn't show the bar of debug

    – yahya boudahra
    Apr 16 '18 at 11:03











  • "...it still doesn't show the bar of debug" -- so it must be some another issue. E.g. did you added that package ServiceProvider into appropriate place? Auto-discovery is available since Laravel 5.5; before that they should be added manually. Follow the instructions.

    – LazyOne
    Apr 16 '18 at 11:25
















0
















( ! ) Fatal error: Cannot redeclare measure() (previously declared in C:wamp64wwwacellemailllvendorbarryvdhlaravel-debugbarsrchelpers.php:77) in C:wamp64wwwacellemailllappHelpershelpers.php on line 427











share|improve this question

























  • Please describe why installing "debugbar" will resolve your issue? Accordingly to the error message you have it installed already. github.com/barryvdh/laravel-debugbar

    – LazyOne
    Apr 15 '18 at 9:14











  • After i install the debugbar it shows that message and the project doesn't run anymore; what i meant is how can i install it without this error

    – yahya boudahra
    Apr 16 '18 at 8:55











  • The error is in YOUR code (...acellemailllappHelpershelpers.php file). You are re-declaring the global function named measure() that is already defined by Laravel Debugbar package. You cannot do that -- it's basic PHP knowledge. Give your function another name... or get rid of Laravel Debugbar package so it does not introduce that function in first place.

    – LazyOne
    Apr 16 '18 at 9:39













  • i changed the function name in my code and it still doesn't show the bar of debug

    – yahya boudahra
    Apr 16 '18 at 11:03











  • "...it still doesn't show the bar of debug" -- so it must be some another issue. E.g. did you added that package ServiceProvider into appropriate place? Auto-discovery is available since Laravel 5.5; before that they should be added manually. Follow the instructions.

    – LazyOne
    Apr 16 '18 at 11:25














0












0








0









( ! ) Fatal error: Cannot redeclare measure() (previously declared in C:wamp64wwwacellemailllvendorbarryvdhlaravel-debugbarsrchelpers.php:77) in C:wamp64wwwacellemailllappHelpershelpers.php on line 427











share|improve this question

















( ! ) Fatal error: Cannot redeclare measure() (previously declared in C:wamp64wwwacellemailllvendorbarryvdhlaravel-debugbarsrchelpers.php:77) in C:wamp64wwwacellemailllappHelpershelpers.php on line 427








laravel debugging laravel-5.2 laravel-5.3 xdebug






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 15 '18 at 9:12









LazyOne

109k21242265




109k21242265










asked Apr 14 '18 at 17:49









yahya boudahrayahya boudahra

15




15













  • Please describe why installing "debugbar" will resolve your issue? Accordingly to the error message you have it installed already. github.com/barryvdh/laravel-debugbar

    – LazyOne
    Apr 15 '18 at 9:14











  • After i install the debugbar it shows that message and the project doesn't run anymore; what i meant is how can i install it without this error

    – yahya boudahra
    Apr 16 '18 at 8:55











  • The error is in YOUR code (...acellemailllappHelpershelpers.php file). You are re-declaring the global function named measure() that is already defined by Laravel Debugbar package. You cannot do that -- it's basic PHP knowledge. Give your function another name... or get rid of Laravel Debugbar package so it does not introduce that function in first place.

    – LazyOne
    Apr 16 '18 at 9:39













  • i changed the function name in my code and it still doesn't show the bar of debug

    – yahya boudahra
    Apr 16 '18 at 11:03











  • "...it still doesn't show the bar of debug" -- so it must be some another issue. E.g. did you added that package ServiceProvider into appropriate place? Auto-discovery is available since Laravel 5.5; before that they should be added manually. Follow the instructions.

    – LazyOne
    Apr 16 '18 at 11:25



















  • Please describe why installing "debugbar" will resolve your issue? Accordingly to the error message you have it installed already. github.com/barryvdh/laravel-debugbar

    – LazyOne
    Apr 15 '18 at 9:14











  • After i install the debugbar it shows that message and the project doesn't run anymore; what i meant is how can i install it without this error

    – yahya boudahra
    Apr 16 '18 at 8:55











  • The error is in YOUR code (...acellemailllappHelpershelpers.php file). You are re-declaring the global function named measure() that is already defined by Laravel Debugbar package. You cannot do that -- it's basic PHP knowledge. Give your function another name... or get rid of Laravel Debugbar package so it does not introduce that function in first place.

    – LazyOne
    Apr 16 '18 at 9:39













  • i changed the function name in my code and it still doesn't show the bar of debug

    – yahya boudahra
    Apr 16 '18 at 11:03











  • "...it still doesn't show the bar of debug" -- so it must be some another issue. E.g. did you added that package ServiceProvider into appropriate place? Auto-discovery is available since Laravel 5.5; before that they should be added manually. Follow the instructions.

    – LazyOne
    Apr 16 '18 at 11:25

















Please describe why installing "debugbar" will resolve your issue? Accordingly to the error message you have it installed already. github.com/barryvdh/laravel-debugbar

– LazyOne
Apr 15 '18 at 9:14





Please describe why installing "debugbar" will resolve your issue? Accordingly to the error message you have it installed already. github.com/barryvdh/laravel-debugbar

– LazyOne
Apr 15 '18 at 9:14













After i install the debugbar it shows that message and the project doesn't run anymore; what i meant is how can i install it without this error

– yahya boudahra
Apr 16 '18 at 8:55





After i install the debugbar it shows that message and the project doesn't run anymore; what i meant is how can i install it without this error

– yahya boudahra
Apr 16 '18 at 8:55













The error is in YOUR code (...acellemailllappHelpershelpers.php file). You are re-declaring the global function named measure() that is already defined by Laravel Debugbar package. You cannot do that -- it's basic PHP knowledge. Give your function another name... or get rid of Laravel Debugbar package so it does not introduce that function in first place.

– LazyOne
Apr 16 '18 at 9:39







The error is in YOUR code (...acellemailllappHelpershelpers.php file). You are re-declaring the global function named measure() that is already defined by Laravel Debugbar package. You cannot do that -- it's basic PHP knowledge. Give your function another name... or get rid of Laravel Debugbar package so it does not introduce that function in first place.

– LazyOne
Apr 16 '18 at 9:39















i changed the function name in my code and it still doesn't show the bar of debug

– yahya boudahra
Apr 16 '18 at 11:03





i changed the function name in my code and it still doesn't show the bar of debug

– yahya boudahra
Apr 16 '18 at 11:03













"...it still doesn't show the bar of debug" -- so it must be some another issue. E.g. did you added that package ServiceProvider into appropriate place? Auto-discovery is available since Laravel 5.5; before that they should be added manually. Follow the instructions.

– LazyOne
Apr 16 '18 at 11:25





"...it still doesn't show the bar of debug" -- so it must be some another issue. E.g. did you added that package ServiceProvider into appropriate place? Auto-discovery is available since Laravel 5.5; before that they should be added manually. Follow the instructions.

– LazyOne
Apr 16 '18 at 11:25












2 Answers
2






active

oldest

votes


















2














Open the terminal and to do like this as your wise



1) Install DebugBar




  • The DebugBar 2.4.x is for Laravel 5.4-

  • The DebugBar 3.0.x is for Laravel 5.5+


A) Install the debuger 2.4 (Documentation)



composer require barryvdh/laravel-debugbar:~2.4


You will also need to add in providers array in config/app.php :



BarryvdhDebugbarServiceProvider::class


B) Install the debuger 3.0 (Documentation)



composer require barryvdh/laravel-debugbar --dev


2) After that, you need to update the composer



composer update


3) Clear cache and config



php artisan cache:clear

php artisan config:cache


4) Then after you need to add a line to .env file



APP_DEBUG=true





share|improve this answer

































    0














    composer require barryvdh/laravel-debugbar



    open config/app.php and inside the ‘providers’ array add:



    'BarryvdhDebugbarServiceProvider',



    https://laravel-news.com/laravel-debugbar






    share|improve this answer























      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f49834437%2fhow-can-i-install-debugbar-in-laravel%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      2














      Open the terminal and to do like this as your wise



      1) Install DebugBar




      • The DebugBar 2.4.x is for Laravel 5.4-

      • The DebugBar 3.0.x is for Laravel 5.5+


      A) Install the debuger 2.4 (Documentation)



      composer require barryvdh/laravel-debugbar:~2.4


      You will also need to add in providers array in config/app.php :



      BarryvdhDebugbarServiceProvider::class


      B) Install the debuger 3.0 (Documentation)



      composer require barryvdh/laravel-debugbar --dev


      2) After that, you need to update the composer



      composer update


      3) Clear cache and config



      php artisan cache:clear

      php artisan config:cache


      4) Then after you need to add a line to .env file



      APP_DEBUG=true





      share|improve this answer






























        2














        Open the terminal and to do like this as your wise



        1) Install DebugBar




        • The DebugBar 2.4.x is for Laravel 5.4-

        • The DebugBar 3.0.x is for Laravel 5.5+


        A) Install the debuger 2.4 (Documentation)



        composer require barryvdh/laravel-debugbar:~2.4


        You will also need to add in providers array in config/app.php :



        BarryvdhDebugbarServiceProvider::class


        B) Install the debuger 3.0 (Documentation)



        composer require barryvdh/laravel-debugbar --dev


        2) After that, you need to update the composer



        composer update


        3) Clear cache and config



        php artisan cache:clear

        php artisan config:cache


        4) Then after you need to add a line to .env file



        APP_DEBUG=true





        share|improve this answer




























          2












          2








          2







          Open the terminal and to do like this as your wise



          1) Install DebugBar




          • The DebugBar 2.4.x is for Laravel 5.4-

          • The DebugBar 3.0.x is for Laravel 5.5+


          A) Install the debuger 2.4 (Documentation)



          composer require barryvdh/laravel-debugbar:~2.4


          You will also need to add in providers array in config/app.php :



          BarryvdhDebugbarServiceProvider::class


          B) Install the debuger 3.0 (Documentation)



          composer require barryvdh/laravel-debugbar --dev


          2) After that, you need to update the composer



          composer update


          3) Clear cache and config



          php artisan cache:clear

          php artisan config:cache


          4) Then after you need to add a line to .env file



          APP_DEBUG=true





          share|improve this answer















          Open the terminal and to do like this as your wise



          1) Install DebugBar




          • The DebugBar 2.4.x is for Laravel 5.4-

          • The DebugBar 3.0.x is for Laravel 5.5+


          A) Install the debuger 2.4 (Documentation)



          composer require barryvdh/laravel-debugbar:~2.4


          You will also need to add in providers array in config/app.php :



          BarryvdhDebugbarServiceProvider::class


          B) Install the debuger 3.0 (Documentation)



          composer require barryvdh/laravel-debugbar --dev


          2) After that, you need to update the composer



          composer update


          3) Clear cache and config



          php artisan cache:clear

          php artisan config:cache


          4) Then after you need to add a line to .env file



          APP_DEBUG=true






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 1 at 8:10

























          answered Nov 21 '18 at 5:41









          Shabeer ShaShabeer Sha

          73111




          73111

























              0














              composer require barryvdh/laravel-debugbar



              open config/app.php and inside the ‘providers’ array add:



              'BarryvdhDebugbarServiceProvider',



              https://laravel-news.com/laravel-debugbar






              share|improve this answer




























                0














                composer require barryvdh/laravel-debugbar



                open config/app.php and inside the ‘providers’ array add:



                'BarryvdhDebugbarServiceProvider',



                https://laravel-news.com/laravel-debugbar






                share|improve this answer


























                  0












                  0








                  0







                  composer require barryvdh/laravel-debugbar



                  open config/app.php and inside the ‘providers’ array add:



                  'BarryvdhDebugbarServiceProvider',



                  https://laravel-news.com/laravel-debugbar






                  share|improve this answer













                  composer require barryvdh/laravel-debugbar



                  open config/app.php and inside the ‘providers’ array add:



                  'BarryvdhDebugbarServiceProvider',



                  https://laravel-news.com/laravel-debugbar







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 21 '18 at 11:33









                  sharad shindesharad shinde

                  11




                  11






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f49834437%2fhow-can-i-install-debugbar-in-laravel%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

                      ComboBox Display Member on multiple fields

                      Is it possible to collect Nectar points via Trainline?