diff --git a/Backend/Controllers/FileHandler/gameHandler.php b/Backend/Controllers/FileHandler/gameHandler.php new file mode 100644 index 0000000..b3d9bbc --- /dev/null +++ b/Backend/Controllers/FileHandler/gameHandler.php @@ -0,0 +1 @@ +game_name = $title; $gameData->game_link = $gameFileNewName; + $gameData->description = $desc; $gameData->is_web_Based = $isWebBased; $gameData->save(); - rename($gameFileTmp,"../Games/".$gameFileNewName); + rename($gameFileTmp,"../../Games/".$gameFileNewName); } }else{ echo "Der var en fejl med at uploade din file"; diff --git a/Backend/Models/GameData.php b/Backend/Models/GameData.php index 4f8f95b..eb94c7a 100644 --- a/Backend/Models/GameData.php +++ b/Backend/Models/GameData.php @@ -5,7 +5,7 @@ use Illuminate\Database\Eloquent\Model as Eloquent; class GameData extends Eloquent { protected $fillable = [ - 'game_name', 'game_link', 'is_web_Based', "img" + 'game_name', 'game_link', 'is_web_Based', 'description' , "img" ]; public function group(){ diff --git a/Frontend/group.php b/Frontend/group.php index bf52822..2c2baee 100644 --- a/Frontend/group.php +++ b/Frontend/group.php @@ -17,7 +17,7 @@ -
+

@@ -27,7 +27,7 @@

-

+