PHP code example of alazziaz / laravel-dapr
1. Go to this page and download the library: Download alazziaz/laravel-dapr 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/ */
alazziaz / laravel-dapr example snippets
> $middleware->validateCsrfTokens(except: [
> 'dapr/invoke/*',
> ]);
>
Route::daprInvoke([
'orders.create' => \App\Http\Controllers\Orders\CreateViaInvoke::class,
]);
// or mount the default controller and manage handlers via config
Route::daprInvokeController();
$response = dapr_invoke('billing-service', 'health.check');
composer