projecten
This commit is contained in:
@@ -36,6 +36,8 @@ class BaseModel extends Eloquent {
|
||||
parent::boot();
|
||||
|
||||
static::creating( function ( $model ) {
|
||||
static::$oldValue = '';
|
||||
|
||||
if ( AUTHENTICATED )
|
||||
{
|
||||
$user = User::find(USERID);
|
||||
@@ -44,6 +46,8 @@ class BaseModel extends Eloquent {
|
||||
}
|
||||
} );
|
||||
static::updating( function ( $model ) {
|
||||
static::$oldValue = json_encode($model->original);
|
||||
|
||||
if ( AUTHENTICATED )
|
||||
{
|
||||
$user = User::find(USERID);
|
||||
|
||||
Reference in New Issue
Block a user