<?php

use PDFfiller\OAuth2\Client\Provider\Application;
$provider = (require_once __DIR__ . '/../bootstrap/initWithFabric.php');
$application = new Application($provider);
$application->name = 'App name';
$application->description = 'Some application description';
$application->domain = 'http://some.domain.com';
dd($application->save());
<?php

use PDFfiller\OAuth2\Client\Provider\Application;
$provider = (require_once __DIR__ . '/../bootstrap/initWithFabric.php');
$application = Application::one($provider, '547d2b9c2d3b902a');
$application->name = 'Updated App name';
$application->description = 'Some changed application description';
dd($application->save(false));
<?php

use PDFfiller\OAuth2\Client\Provider\Application;
$provider = (require_once __DIR__ . '/../bootstrap/initWithFabric.php');
$application = new Application($provider);
$e = Application::all($provider);
dd($e);