• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

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

custom module erroe

Modules
2
6
401
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 23 Nov 2020, 16:11

    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 24 Nov 2020, 06:34

      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 25 Nov 2020, 06:33

        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 25 Nov 2020, 10:42

          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 25 Nov 2020, 11:39

            @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 25 Nov 2020, 15:08

              @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
              4 out of 6
              • First post
                4/6
                Last post