in fact i am using uuid in routing outside my app and id in relationships as the following example
use \Askedio\SoftCascade\Traits\SoftCascadeTrait;
protected $softCascade = ['orders'];
protected $primaryKey = 'id';
public function getKeyName()
{
return 'uuid';
}
/**
* Get all of the user's orders.
* @return \Illuminate\Database\Eloquent\Relations\MorphMany
*/
public function orders()
{
return $this->morphMany(Order::class, 'orderable', 'owner_type', 'owner_id', 'id');
}`
When i try to delete within softCascade nothing happen with relation
Note: this's not only morphMany but with all laravel relations
Firstly , Thanks for this Awesome Package
in fact i am using uuid in routing outside my app and id in relationships as the following example
When i try to delete within softCascade nothing happen with relation Note: this's not only morphMany but with all laravel relations
Any Suggest,Thanks