diff --git a/app/Http/Controllers/CardController.php b/app/Http/Controllers/CardController.php index 4551922..1a6f7c8 100644 --- a/app/Http/Controllers/CardController.php +++ b/app/Http/Controllers/CardController.php @@ -60,7 +60,6 @@ class CardController extends Controller public function freeCartResult($id) { $card = $this->cardRepository->find($id); - return response()->json([ 'success' => true, 'cards' => $card, diff --git a/app/Models/Card.php b/app/Models/Card.php index 74bdf76..6e31e1d 100644 --- a/app/Models/Card.php +++ b/app/Models/Card.php @@ -17,6 +17,7 @@ class Card extends Model 'description_reversed', 'symbolism', 'image_url', + 'description' ]; protected $casts = [ diff --git a/app/Support/CardCsvImporter.php b/app/Support/CardCsvImporter.php index d5762fa..e3c0946 100644 --- a/app/Support/CardCsvImporter.php +++ b/app/Support/CardCsvImporter.php @@ -53,6 +53,7 @@ class CardCsvImporter if (!$name) { $skipped++; continue; } $payload = [ + 'description' => (string) ($get($row, 'description') ?? ''), 'description_upright' => (string) ($get($row, 'description_upright') ?? ''), 'description_reversed' => (string) ($get($row, 'description_reversed') ?? ''), 'image_url' => $get($row, 'image_url') ?: null, diff --git a/database/migrations/2025_09_16_103500_alter_description_longtext_on_cards.php b/database/migrations/2025_09_16_103500_alter_description_longtext_on_cards.php new file mode 100644 index 0000000..5551680 --- /dev/null +++ b/database/migrations/2025_09_16_103500_alter_description_longtext_on_cards.php @@ -0,0 +1,19 @@ + {
- {{ card.orientation === 'reversed' ? 'Position Inversée' : 'Position Droite' }} -
- {{ card.orientation === 'reversed' ? card.description_reversed : card.description_upright }} + {{ card.description }}