PHP code example of abellion / xenus-laravel

1. Go to this page and download the library: Download abellion/xenus-laravel 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/ */

    

abellion / xenus-laravel example snippets


[
    'mongodb' => [
        'connection' => [
            'host' => 'mongodb://localhost:27017',
            'database' => 'my_database'
        ]
    ]
]

use Xenus\Laravel\XenusServiceProvider as ServiceProvider;

class XenusServiceProvider extends ServiceProvider
{
    protected $collections = [
        MyCollection::class
    ];
}

// config/database.php

[
    'migrations' => 'my_migration_collection'
]

// config/queue.php

[
    'failed' => [
        'collection' => 'my_failed_jobs_collection'
    ]
]