PHP code example of m809745357 / mini-program

1. Go to this page and download the library: Download m809745357/mini-program 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/ */

    

m809745357 / mini-program example snippets


/*
 * Package Service Providers...
 */
M809745357\MiniProgram\MiniProgramServiceProvider::class,

return [
    'program' => [
        'appid' => env('MINI_PROGRAM_APP_ID', 'miniprogramappid'),
        'appsecret' => env('MINI_PROGRAM_APP_SECRET', 'miniprogramappsecret')
    ]
];

/**
 * Register any authentication / authorization services.
 *
 * @return void
 */
public function boot()
{
    $this->registerPolicies();
  
    MiniProgram::routes();
}
shell
php artisan vendor:publish --provider="M809745357\MiniProgram\MiniProgramServiceProvider"
shell
php artisan migrate