public function recordActivity($event, $before, $after)
    {
        if ($before == $after || Chronos::paused()) {
            return;
        }

        $this->activities()->create([
            'event' => $event,
            'before' => $before,
            'after' => $after,
        ]);
    }
public function recordActivity($event, $before, $after)
    {
        if ($before == $after || Chronos::paused()) {
            return;
        }

        $this->activities()->create([
            'event' => $event,
            'before' => $before,
            'after' => $after,
        ]);
    }
public function recordActivity ( $ event , $ before , $ after ) { if ( $ before == $ after || Chronos :: paused ( ) ) { return ; } $ this -> activities ( ) -> create ( [ 'event' => $ event , 'before' => $ before , 'after' => $ after , ] ) ; }
Records the activity.

@param  string  $event
@param  array|null  $before
@param  array|null  $after
@return void
Records the activity .