PHP code example of katalam / laravel-onoffice-adapter
1. Go to this page and download the library: Download katalam/laravel-onoffice-adapter 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/ */
katalam / laravel-onoffice-adapter example snippets
use Innobrain\OnOfficeAdapter\Facades\EstateRepository;
// Get all estates
$estates = EstateRepository::query()->get();
// Find by ID
$estate = EstateRepository::query()->find(123);
// Get first result
$estate = EstateRepository::query()->first();
// Count results
$count = EstateRepository::query()->count();
EstateRepository::fake([
EstateRepository::response([/* first call */]),
EstateRepository::response([/* second call */]),
]);
// Or repeat the same response
EstateRepository::fake(EstateRepository::sequence(
EstateRepository::response([/* ... */]),
times: 30,
));