PHP code example of josephting / lolapi-4-laravel
1. Go to this page and download the library: Download josephting/lolapi-4-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/ */
josephting / lolapi-4-laravel example snippets
'providers' => array(
// ...
'Josephting\LolApi\LolApiServiceProvider',
)
'aliases' => array(
// ...
'LolApi' => 'Josephting\LolApi\Facade\LolApi',
)
return array(
'api_key' => ''
);
$api = LolApi:Api();
$api = LolApi:Api('YOUR_API_KEY');
app/config/app.php
app/config/app.php
$ php artisan config:publish josephting/lolapi-4-laravel