PHP code example of maplesnow / laravel-apollo

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

    

maplesnow / laravel-apollo example snippets


MapleSnow\Apollo\Providers\ApolloServiceProvider::class

'Apollo' => MapleSnow\Apollo\Facades\Apollo::class

php artisan vendor:publish --provider="MapleSnow\Apollo\Providers\ApolloServiceProvider"

dd(trans("lang.message.hello",['name','mapleSnow']),trans("lang.auth.failed"));
bash
php artisan apollo.start-agent