title: Deleted_by is not changing while i delete a data using observers;
body: <p>I want to have fields created_by,updated_by and deleted_by and want to update these fields automatically. created_by,updated_by is working but deleted_by is not working.i am using an observer to perform this task. When i use dd($model) in deleting function in observer it shows the  collection or values but the deleted_by is not updating.</p>
  <p>My model</p>
  <pre><code>namespace App\Model;
  
  use Illuminate\Database\Eloquent\Model;
  use Illuminate\Database\Eloquent\SoftDeletes;
  use App\Observers\UserIdFinderObserver;
  
  class supplier extends Model
  {
      use SoftDeletes;
      protected $fillable = [
          'name', 'address', 'contact','contact_person_name','country','email'
      ];
  
     
      public static function boot()
      {
          parent::boot();
          $class = get_called_class();
          $class::observe(new UserIdFinderObserver());
      
        
      }
  }
  </code></pre>
  <p>my migration file</p>
  <pre><code>public function up()
      {
          Schema::create('suppliers', function (Blueprint $table) {
              $table-&gt;id();
              $table-&gt;string('name');
              $table-&gt;string('contact_person_name');
              $table-&gt;string('country')-&gt;nullable();
              $table-&gt;text('address')-&gt;nullable();
              $table-&gt;string('contact')-&gt;nullable();
              $table-&gt;string('email')-&gt;nullable();
              $table-&gt;string('created_by')-&gt;nullable();
              $table-&gt;string('updated_by')-&gt;nullable();
              $table-&gt;string('deleted_by')-&gt;nullable();
              $table-&gt;softDeletes();
              $table-&gt;timestamps();
          });
      }
  </code></pre>
  <p>My delete function in controller</p>
  <pre><code> public function destroy(supplier $supplier)
      {
          try{
              $supplier-&gt;delete();
              return redirect()-&gt;route('supplier.index')-&gt;with('success', 'Supplier is deleted successfully');
          }catch(Exception $e){
              return redirect()-&gt;back()-&gt;withErrors($e-&gt;getMessage());
          }
      }
  </code></pre>
  <p>My Observer</p>
  <pre><code>namespace App\Observers;
  
  class UserIdFinderObserver
  {
      private $userID;
  
      public function __construct(){
          $this-&gt;userID = auth()-&gt;id();
      }
  
      public function saving($model)
      {
          $model-&gt;created_by = $this-&gt;userID;
      }
  
      
  
  
      public function updating($model){
              $model-&gt;updated_by = $this-&gt;userID;
      }
  
     
  
  
      public function creating($model)
      {
          $model-&gt;created_by = $this-&gt;userID;
      }
  
      
  
  
     
      public function deleting($model)
      {
          $model-&gt;deleted_by = $this-&gt;userID;
      }
      
     
  }
  </code></pre>