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