Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
Fix post step 2 modules generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferry Ariawan committed Mar 25, 2021
1 parent 11484bd commit 22d54df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/ModulsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ public function postStep2()
$created_at = now();

$controller = CRUDBooster::generateController($table_name, $path);
DB::table($this->table)->insert(compact("controller", "name", "table_name", "icon", "path", "created_at", "id"));
$id = DB::table($this->table)->insertGetId(compact("controller", "name", "table_name", "icon", "path", "created_at"));

//Insert Menu
if ($controller && Request::get('create_menu')) {
Expand Down

0 comments on commit 22d54df

Please sign in to comment.