fix: Fixed wrong doc for softDeletes withTrashed method (#1688)

This commit is contained in:
Kristijan
2025-07-17 07:50:16 +02:00
committed by GitHub
parent 4dfc08a854
commit cff244b9b5
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1411,7 +1411,7 @@ class ModelsCommand extends Command
if (in_array('Illuminate\\Database\\Eloquent\\SoftDeletes', $traits)) {
$modelName = $this->getClassNameInDestinationFile($model, get_class($model));
$builder = $this->getClassNameInDestinationFile($model, \Illuminate\Database\Eloquent\Builder::class);
$this->setMethod('withTrashed', $builder . '<static>|' . $modelName, []);
$this->setMethod('withTrashed', $builder . '<static>|' . $modelName, ['bool $withTrashed = true']);
$this->setMethod('withoutTrashed', $builder . '<static>|' . $modelName, []);
$this->setMethod('onlyTrashed', $builder . '<static>|' . $modelName, []);
}