From 1fd4e14d8c3d5ee1e6a81636a63105324fec721b Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 30 May 2023 23:57:50 +0200 Subject: [PATCH] Add Slug population up to blade itself --- resources/views/games/create.blade.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/views/games/create.blade.php b/resources/views/games/create.blade.php index 0b44e84..1fd824b 100644 --- a/resources/views/games/create.blade.php +++ b/resources/views/games/create.blade.php @@ -13,6 +13,7 @@ // Update the form fields with game details console.log(game); document.getElementById("game_name").value = game['name']; + document.getElementById("game_slug").value = game['slug']; document.getElementById("category").value = formatCategoryToHumanReadable(game.category); document.getElementById("summary").value = game.summary; //document.getElementById("summary").value = "php translate(':summary', 'de') ".replace(':summary', game.summary); @@ -118,6 +119,10 @@
Game Cover
+
+ + +