This commit is contained in:
tanner0101 2017-05-22 14:13:39 +01:00
parent cface21a03
commit 19e31f0e3b
2 changed files with 3 additions and 3 deletions

View File

@ -2065,7 +2065,7 @@ deleting the model.</p>
<h3 id="including-deleted">Including Deleted<a class="headerlink" href="#including-deleted" title="Permanent link">&para;</a></h3>
<p>When a model is soft deleted, it will be affected by any queries made with the Fluent query builder.</p>
<p>When a model is soft deleted, it will not be affected by any queries made with the Fluent query builder.</p>
<p>To include soft deleted models, for instance if you want to restore them, use the <code>.withSoftDeleted()</code> method
on the query builder.</p>
<div class="codehilite"><pre><span></span><span class="kd">let</span> <span class="nv">allUsers</span> <span class="p">=</span> <span class="k">try</span> <span class="n">User</span><span class="p">.</span><span class="n">makeQuery</span><span class="p">().</span><span class="n">withSoftDeleted</span><span class="p">().</span><span class="n">all</span><span class="p">()</span>

File diff suppressed because one or more lines are too long