withtrashed laravel 7 code example
Example: laravel withtrashed
public function category() {
return $this->belongsTo('App\Category')->withTrashed();
}
public function category() {
return $this->belongsTo('App\Category')->withTrashed();
}