composer require generationtux/laravel-marketo-rest-api
// For Laravel
// Service Provider
'providers' => [
...
GenTux\Artisan\Marketo\LaravelServiceProvider::class,
];
// Facade
'aliases' => [
'Marketo' => GenTux\Artisan\Marketo\MarketoFacade::class,
];
// For Lumen
// app.php
$app->register(GenTux\Artisan\Marketo\LumenServiceProvider::class);
php artisan vendor:publish --provider="GenTux\Artisan\Marketo\MarketoServiceProvider"
If you're using Lumen and do not have access to publish a config, use the code below fo config and name it marketo.php:
<?php
return [
'auth' => [
'api_url' => env('MARKETO_API_URL'),
'client_id' => env('MARKETO_CLIENT_ID'),
'client_secret' => env('MARKETO_CLIENT_SECRET'),
]
];