oc-adrema-plugin/support/FetchAllEvents.php

19 lines
300 B
PHP

<?php
namespace Silva\Adrema\Support;
use Illuminate\Support\Collection;
class FetchAllEvents
{
public function run(): ?Collection
{
$events = app(Proxy::class)->run('/api/form');
if (!$events) {
return null;
}
return collect($events);
}
}