PHP code example of jose-chan / payment

1. Go to this page and download the library: Download jose-chan/payment library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jose-chan / payment example snippets



    /**
     * Seed the application's database.
     *
     * @return void
     */
    public function run()
    {

         $this->call([
             PaymentTypeConfigSeeder::class,
             PaymentTypeSeeder::class,
             MenuSeeder::class,
         ]);
    }


return [
    
    //……其他配置项省略

    'providers' => [
    
        //……其他配置项省略
        
        /**
         * laravel-admin providers
         */
        \JoseChan\Payment\PaymentServiceProvider::class,
        
    ]
]



return [

    //……其他配置项省略
    
    /*
     * Settings for extensions.
     */
    'extensions' => [
        "payment"=>[
            "enable" => true,
        ]
    ],
];



return [
    
    //……其他配置项省略

    'providers' => [
    
        //……其他配置项省略
        
        /**
         * laravel-admin providers
         */
        \JoseChan\Payment\ApiServiceProvider::class,
        
    ]
]