title: Why laravel auditing not functioning?
body: <p>I have done my coding but the laravel audit seems not catch the data for update. 
  The data i try to  update is on the column of value, but on the database the value are not be catch on audit table for auditing the update changes .
  below is the coding for update the data.</p>
  
  <p><strong>academicsetting.php</strong>:</p>
  
  <pre><code>class AcademicSetting extends Model implements Auditable
  {
      use SoftDeletes, ActiveScope;
      use \OwenIt\Auditing\Auditable;
  
      /**
       * The attributes that are mass assignable.
       *
       * @var array
       */
      protected $dates    = ['deleted_at'];
      protected $fillable = [
          'id',
          'type',
          'field',
          'name',
          'value',
          'description',
          'is_active',
          'created_by',
          'created_at',
          'updated_by',
          'updated_at',
          'deleted_by',
          'deleted_at',
      ];
  
      protected $casts = [
          'value' =&gt; 'json',
      ];
  
      public function transformAudit(array $data): array
      {
          dump($data);exit();
          if ($data['event'] == 'created') {
  
              $data['new_values']['created_by'] = Staff::where('id', $this-&gt;getAttribute('created_by'))-&gt;value('name');
              $data['new_values']['updated_by'] = Staff::where('id', $this-&gt;getAttribute('updated_by'))-&gt;value('name');
  
          }
          if ($data['event'] == 'deleted') {
              $data['old_values']['deleted_by'] = Staff::where('id', $this-&gt;getOriginal('deleted_by'))-&gt;value('name');
              $data['new_values']['deleted_by'] = Staff::where('id', $this-&gt;getAttribute('deleted_by'))-&gt;value('name');
          }
          if ($data['event'] == 'updated') {
              $data['old_values']['updated_by'] = Staff::where('id', $this-&gt;getOriginal('updated_by'))-&gt;value('name');
              $data['new_values']['updated_by'] = Staff::where('id', $this-&gt;getAttribute('updated_by'))-&gt;value('name');
  
          }
  
          return $data;
      }
  }
  </code></pre>
  
  <p><strong>academicgeneralcontroller.php</strong>:</p>
  
  <pre><code> public function update(Request $request, $id)
      {
          /** implode multi dropdown value */
          $request['final_attendance_reset_mark'] = $request-&gt;input('final_attendance_reset_mark');
          /** end */
          $this-&gt;general-&gt;update($request-&gt;except('_token', 'academicsetting-table_length', '_method'), $id);
          Session::flash('alert-success', msg('msg_success_update'));
          return redirect()-&gt;route('academic_general.index');
      }
  </code></pre>
  
  <p><strong>generalrepository.php</strong>:</p>
  
  <pre><code>class GeneralRepository extends Repository
  {
  
      /**
       * Specify Model class name
       *
       * @return mixed
       */
      public function model()
      {
          return AcademicSetting::class;
      }
  
      public function update(array $data, $id, $attribute = 'id')
      {
          // dump($data);exit();
          foreach ($data as $key =&gt; $value) {
              if ($key == 'final_attendance_reset_mark') {
  
                  $array = [];
                  if (!empty($value)) {
                      foreach ($value as $key_value =&gt; $value) {
                          $array[(int) $key_value] = (int) $value;
                      }
                  }
  
                  $json = json_encode($array, JSON_FORCE_OBJECT);
                  // dump($json);
                  $update_value = [
                      'value' =&gt; $json,
                  ];
              } else {
                  $update_value = ['value' =&gt; $value];
              }
              dump($update_value);exit();
              $general = AcademicSetting::where('field', $key)-&gt;update($update_value);
          }
      }
  }
  </code></pre>