PHP code example of jameslkingsley / laravel-livedata

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

    

jameslkingsley / laravel-livedata example snippets


'providers' => [
    ...
    Kingsley\LiveData\LiveDataServiceProvider::class,
];

return [
    /**
     * The live database connection to pull from.
     * Connection defined in config\database.php.
     */
    'live' => 'mysql_live',

    /**
     * The local database connection to pull to.
     * Connection defined in config\database.php.
     * If null will use the app's default configuration.
     */
    'local' => null
];
bash
php artisan vendor:publish --provider="Kingsley\LiveData\LiveDataServiceProvider"
bash
php artisan livedata:pull