PHP code example of community-sdks / laravel-cloud-laravel
1. Go to this page and download the library: Download community-sdks/laravel-cloud-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/ */
community-sdks / laravel-cloud-laravel example snippets
use CommunitySDKs\LaravelCloud\DTO\Requests\Applications\ListApplicationsRequest;
use CommunitySDKs\LaravelCloudLaravel\Facades\LaravelCloud;
$applications = LaravelCloud::applications()->list(
new ListApplicationsRequest(),
);
use CommunitySDKs\LaravelCloud\Client;
final class ListCloudApplications
{
public function __construct(private Client $cloud) {}
public function __invoke(): mixed
{
return $this->cloud->applications()->list();
}
}
bash
php artisan vendor:publish --tag=laravel-cloud-config