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

Bagisto

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

Creating Custom Packages Error

General Discussion
2
4
318
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.
  • H
    himanshu-kmr last edited by 23 Feb 2021, 12:22

    Hello Bagisto Team,

    I am creating a custom contact package by looking at the https://devdocs.bagisto.com/1.x/packages/create_package.html

    The package has been created by the php artisan package:make Ebest/Contact

    After the I have set provider on config/app.php (Ebest\Contact\Providers\ContactServiceProvider::class,)

    On composer.json
    "psr-4": {
    "Ebest\Contact\": "packages/Ebest/Contact/src"
    }

    After dumping the autoload and updating the composer

    I am getting this error

    Route [contact.admin.index] not defined. (View: D:\xampp\htdocs\bagisto\packages\Webkul\Admin\src\Resources\views\layouts\master.blade.php) (View: D:\xampp\htdocs\bagisto\packages\Webkul\Admin\src\Resources\views\layouts\master.blade.php)

    Please Help...

    Thanks in advance.

    1 Reply Last reply Reply Quote 0
    • devansh-webkul
      devansh-webkul last edited by 24 Feb 2021, 05:20

      Hi @himanshu-kmr,

      Check the composer.json file,

      It should be like this,

      "psr-4": {
          "Ebest\\Contact\\": "packages/Ebest/Contact/src"
      }
      

      And second thing is that your routes have not been registered. If routes are created then run php artisan optimize.

      1 Reply Last reply Reply Quote 0
      • H
        himanshu-kmr last edited by 24 Feb 2021, 12:48

        @devansh-webkul said in Creating Custom Packages Error:

        e composer.json f

        Thank You @devansh-webkul , The problem has been solved by running php artisan optimize

        1 Reply Last reply Reply Quote 0
        • devansh-webkul
          devansh-webkul last edited by 24 Feb 2021, 13:03

          Hi @himanshu-kmr,

          Thanks for the update.

          Also, if you like our support, you may give us the review here:- https://www.trustpilot.com/review/bagisto.com

          That would be grateful for us.

          Thanks & Regards,

          Bagisto Team

          1 Reply Last reply Reply Quote 0
          3 out of 4
          • First post
            3/4
            Last post