feat: Add Trello configuration fallback and test command
- Add fallback env parsing directly from .env file in config/trello.php - Fixes issue where cached config prevents env() from reading .env values - Add artisan trello:test command to diagnose Trello configuration - Test command checks API credentials, board/list IDs, and connectivity - Test successfully creates and moves a test Trello card
This commit is contained in:
@@ -25,7 +25,12 @@ class TrelloService
|
||||
public function createCard(string $orderId, string $orderNumber, string $orderType = 'standard', ?string $startingListId = null): ?string
|
||||
{
|
||||
if (! $this->isConfigured()) {
|
||||
Log::warning('Trello not configured, skipping card creation', ['order_id' => $orderId]);
|
||||
Log::warning('Trello not configured, skipping card creation', [
|
||||
'order_id' => $orderId,
|
||||
'api_key' => $this->apiKey ? 'set' : 'empty',
|
||||
'api_token' => $this->apiToken ? 'set' : 'empty',
|
||||
'board_id' => $this->boardId ? 'set' : 'empty',
|
||||
]);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user