Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    custom module erroe

    Modules
    2
    6
    345
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      Imad last edited by

      Hi,
      I tried to install custom module based on your tutorial in youtube...but i am getting the following error..can you let me know how to resolve it?!Screenshot_2.png

      1 Reply Last reply Reply Quote 0
      • devansh-webkul
        devansh-webkul last edited by

        Hi @Imad,

        Can you share with me the steps till php artisan serve. So that I can guide you better.

        Because error clearly shows that some classes are not found this happens when user not register there autoloads in composer.json files or forgot to run composer dump-autoload.

        1 Reply Last reply Reply Quote 0
        • I
          Imad last edited by

          Hi @devansh-webkul ,
          i
          I have followed all the steps mentioned in tutorial...Didnt skipped any..Also if I tried running composer dump autoload cmd...Again same error appears..PFA of service provider class and composer.json file..Screenshot_4.png Screenshot_3.png

          1 Reply Last reply Reply Quote 0
          • devansh-webkul
            devansh-webkul last edited by

            Hi @Imad,

            Just import this namespace use Illuminate\Support\Facades\Event; in top.

            1 Reply Last reply Reply Quote 0
            • I
              Imad last edited by

              @devansh-webkul said in custom module erroe:

              use Illuminate\Support\Facades\Event;

              Thanks @devansh-webkul

              I have created a custom module called hello world..Following is my routes.php file..what url should i give in browser to access my helloworld view ?Screenshot_5.png

              1 Reply Last reply Reply Quote 0
              • devansh-webkul
                devansh-webkul last edited by

                @Imad,

                The route which you specify here is the /hello-world. The same will work on the browser.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post