From f1529b3b8e8e40624f0565721d343cc1560d7ca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sun, 29 Jul 2018 16:37:11 +0200 Subject: [PATCH] Add BaseModel with stricter attribute existence checking --- app/Models/BaseModel.php | 34 ++++++++++++++++++++++++++++++ app/Models/ContentReport.php | 4 +--- app/Models/EmailConfirmation.php | 4 +--- app/Models/Proposal.php | 3 +-- app/Models/Revision.php | 3 +-- app/Models/Row.php | 4 +--- app/Models/Table.php | 3 +-- app/Models/TableComment.php | 3 +-- app/Models/TableFavouritePivot.php | 5 +---- app/Models/User.php | 13 ++++++++++-- 10 files changed, 53 insertions(+), 23 deletions(-) create mode 100644 app/Models/BaseModel.php diff --git a/app/Models/BaseModel.php b/app/Models/BaseModel.php new file mode 100644 index 0000000..ccd53d4 --- /dev/null +++ b/app/Models/BaseModel.php @@ -0,0 +1,34 @@ +