Answer the question
In order to leave comments, you need to log in
How to remove append when link is loaded using with?
Hello!
There is a model, she has
class Model
{
...
protected $appends = [
'some_append',
'some_append2',
];
...
}
class Model2
{
...
public function models(): BelongsToMany
{
return $this->belongsToMany(Model::class);
}
...
}
$result = Model2::with('models')->get();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question