mirror of
https://github.com/JGH0/Todo-App-Backend.git
synced 2026-06-03 13:28:47 +02:00
fix backend CORS: add global CORS filter and catch-all OPTIONS route; fix MySQL insert errors: set updatedField to empty string instead of null in models without updated_at column
This commit is contained in:
@@ -22,7 +22,7 @@ class ProjectModel extends Model
|
||||
|
||||
protected $useTimestamps = true;
|
||||
protected $createdField = 'created_at';
|
||||
protected $updatedField = null;
|
||||
protected $updatedField = '';
|
||||
|
||||
protected $validationRules = [
|
||||
'user_id' => 'required',
|
||||
|
||||
Reference in New Issue
Block a user