Askedio/laravel-soft-cascade

it is not performing

Closed this issue · 2 comments

thank you beforehand !
i have defined all the process which you have told but still it is not cascading the softdelete
i have parent model

hasMany('App\Range'); } public function Countries(){ return $this->hasMany('App\Country'); } } the child model are:: use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use \Askedio\SoftCascade\Traits\SoftCascadeTrait; class Range extends Model { use SoftDeletes; protected $primaryKey = 'Per_id'; protected $dates = ['deleted_at']; protected $softCascade = ['prihscodes']; public function file(){ return $this->belongsTo('App\File','pri_file_F_id'); } public function prihscodes(){ return $this->hasMany('App\Hscode'); } } public function principleTrash($id){ $delete_file= File::find($id); $delete_file->where('F_id',$id)->first()->delete(); return redirect()->back(); }

@prokarm19 Please send the issue formated well. Please add this information:

  • Laravel Soft Cascade Version: #.#.#
  • PHP Version:
  • Database Driver & Version:

Description:

Steps To Reproduce:

@prokarm19 Due to the time that has passed without receiving an answer, I proceed to close the issue. In case it keeps happening you can reopen it at any time with the information we request.