Create spoonacular integration

- Find recipes by ingredients
This commit is contained in:
2024-06-22 11:13:14 +01:00
parent 50fc714895
commit fadb1bc00a
8 changed files with 312 additions and 1 deletions

38
config/saloon.php Normal file
View File

@@ -0,0 +1,38 @@
<?php
declare(strict_types=1);
use Saloon\Http\Senders\GuzzleSender;
return [
/*
|--------------------------------------------------------------------------
| Default Saloon Sender
|--------------------------------------------------------------------------
|
| This value specifies the "sender" class that Saloon should use by
| default on all connectors. You can change this sender if you
| would like to use your own. You may also specify your own
| sender on a per-connector basis.
|
*/
'default_sender' => GuzzleSender::class,
/*
|--------------------------------------------------------------------------
| Integrations Path
|--------------------------------------------------------------------------
|
| By default, this package will create any classes within
| `/app/Http/Integrations` directory. If you're using
| a different design approach, then your classes
| may be in a different place. You can change
| that location so that the saloon:list
| command will still find your files
|
*/
'integrations_path' => base_path('App/Http/Integrations'),
];

View File

@@ -35,4 +35,9 @@ return [
],
],
'spoonacular' => [
'api_url' => env('SPOONACULAR_BASE_API_URL'),
'api_key' => env('SPOONACULAR_API_KEY'),
]
];