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