PHP code example of jonathantorres / laravel-medium-sdk
1. Go to this page and download the library: Download jonathantorres/laravel-medium-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/ */
jonathantorres / laravel-medium-sdk example snippets
'providers' => [
JonathanTorres\LaravelMediumSdk\LaravelMediumSdkServiceProvider::class,
]
// using the App facade
$medium = App::make(JonathanTorres\LaravelMediumSdk\LaravelMediumSdk::class);
// resolving from a controller method
public function index(JonathanTorres\LaravelMediumSdk\LaravelMediumSdk $medium)
{
// use $medium here
}
bash
php artisan vendor:publish