PHP code example of marqant-lab / marqant-pay-voyager

1. Go to this page and download the library: Download marqant-lab/marqant-pay-voyager 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/ */

    

marqant-lab / marqant-pay-voyager example snippets



use Marqant\MarqantPayVoyager\Seeds\VoyagerDatabaseSeeder as VoyagerDatabaseSeederMP;
...
class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     *
     * @return void
     */
    public function run()
    {
        ...
        $this->call(VoyagerDatabaseSeeder::class);
        $this->call(VoyagerDatabaseSeederMP::class);
    }
}

class VoyagerDatabaseSeeder extends Seeder
{
...
    public function run()
    {
        ...
        // Users
        $this->call(VoyagerUsersDataTypesSeeder::class);
        $this->call(VoyagerUsersDataRowsSeeder::class);
        $this->call(VoyagerUsersMenuSeeder::class);
        $this->call(VoyagerUsersPermissionsSeeder::class);
    }
}

$ php artisan voyager:install

$ php artisan voyager:admin [email protected] --create

$ php artisan marqant-pay-voyager:seeders-billable App\\User

$ composer dump-autoload
$ php artisan db:seed