Step : Go to your models which you want delete record from database and paste this code. <?php $this->hasMany('your_table_name', [ 'foreignKey' => 'your_id_name', 'dependent' => true, 'cascadeCallbacks' => true, ]); ?>
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.