Answers for "laravel $this->hasOne with Trashed"

PHP
1

laravel withtrashed

public function category() {
	return $this->belongsTo('App\Category')->withTrashed();
}
Posted by: Guest on June-18-2020

Browse Popular Code Answers by Language