Fix unsetMethod in ModelsCommand (#1453)

* Fix unsetMethod in ModelsCommand

* composer fix-style

---------

Co-authored-by: Barry vd. Heuvel <[email protected]>
Co-authored-by: laravel-ide-helper <[email protected]>
This commit is contained in:
leo108
2024-02-07 21:48:09 +01:00
committed by GitHub
co-authored by Barry vd. Heuvel laravel-ide-helper
parent 2535f8e6ab
commit 409bbf665b
4 changed files with 11 additions and 3 deletions
@@ -12,6 +12,6 @@ class UnsetMethod implements ModelHookInterface
{
public function run(ModelsCommand $command, Model $model): void
{
$command->unsetMethod('query');
$command->unsetMethod('newmodelquery');
}
}
@@ -76,8 +76,8 @@ use Illuminate\Database\Eloquent\Model;
* @property int $id
* @property-read string $custom
* @method static \Illuminate\Database\Eloquent\Builder|Simple custom($custom)
* @method static \Illuminate\Database\Eloquent\Builder|Simple newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Simple newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Simple query()
* @method static \Illuminate\Database\Eloquent\Builder|Simple whereId($value)
* @mixin \Eloquent
*/