diff --git a/app/Http/Controllers/GamesController.php b/app/Http/Controllers/GamesController.php index a95c1d0..a673872 100644 --- a/app/Http/Controllers/GamesController.php +++ b/app/Http/Controllers/GamesController.php @@ -35,16 +35,17 @@ class GamesController extends Controller public function store(Request $request) { // Validate the form data - $validatedData = $request->validate([ - 'name' => 'required|max:255', - 'description' => 'required', + //$validatedData = $request->validate([ + // 'name' => 'required|max:255', + // 'description' => 'required', //'price' => 'required|numeric', //'release_date' => 'required|date', - ]); + //]); $game = new Game; - $game->name = $request->name; - $game->description = $request->description; + $game->fillGameDetails($request->game_slug); + ddd($game); + //$game->price = $request->price; //$game->release_date = $request->release_date; $game->save();