PHP code example of nstack / laravel-sdk

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

    

nstack / laravel-sdk example snippets


Illuminate\Translation\TranslationServiceProvider::class,

NStack\ServiceProvider::class


'providers' =>
[
    ....
    // Illuminate\Translation\TranslationServiceProvider::class
    NStack\ServiceProvider::class
]

'aliases' =>
[
    ....
    'NStack'       => NStack\Facade::class,
]


\NStack::getContinentsClient()->index()

nstack()->getContinentsClient()->index()

echo trans('messages.welcome');

php artisan vendor:publish --provider="NStack\ServiceProvider"