Add BaseModel with stricter attribute existence checking

This commit is contained in:
2018-07-29 16:37:11 +02:00
parent 72ddd75023
commit f1529b3b8e
10 changed files with 53 additions and 23 deletions
+1 -2
View File
@@ -5,7 +5,6 @@ namespace App\Models;
use App\Models\Concerns\Reportable;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
/**
* A data table object (referencing revisions)
@@ -33,7 +32,7 @@ use Illuminate\Database\Eloquent\Model;
* @property-read User[]|Collection $favouritingUsers
* @property-read User[]|Collection $discussionFollowers
*/
class Table extends Model
class Table extends BaseModel
{
use Reportable;
protected $guarded = [];