Recent Topics

Create custom shipment



  • I try to create custom shipment by creating a package and try to insert the custom shipment. but there are no result. my packages have been discovered by laravel but i cant add my shiping method in admin dashboard, pls help

    here's my package dir
    Capture.PNG

    my carriers which extends from abstract carriers in bagisto
    Capture1.PNG

    my config inside package folder
    Capture2.PNG

    and my services provider
    capture3.PNG

    please help, five me guide. thank you



  • Hello jonathantyar,

    You need to create system.php file first, have a look at package 'Shipping->src->Config->system.php' file which will help you in easy understanding

    and after that, within your provider's register method, merge your carriers and system file like below stated

       $this->mergeConfigFrom(
            dirname(__DIR__) . '/Config/carriers.php', 'carriers'
        );
    
        $this->mergeConfigFrom(
            dirname(__DIR__) . '/Config/system.php', 'core'
        );
    

    At last, run the below commands

    1. composer dump-autoload
    2. php artisan config:cache


  • thank you :), now i can see it on admin panel.


Log in to reply