model update
This commit is contained in:
@@ -17,7 +17,7 @@ if (session_status() === PHP_SESSION_ACTIVE) {
|
||||
$keyword = new KeyWord();
|
||||
|
||||
//Take the keyWord the user typed and set it equal to the keyword valuable
|
||||
$keyword->keyWord = $_POST['key_word'];
|
||||
$keyword->key_word = $_POST['key_word'];
|
||||
|
||||
//Make foreign key from the groups table to the keyWords table
|
||||
$keyword->group()->associate($group);
|
||||
|
||||
Reference in New Issue
Block a user