mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 18:13:11 +00:00
18 lines
442 B
PHP
18 lines
442 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\ModelHooks\Hooks;
|
|
|
|
use Barryvdh\LaravelIdeHelper\Console\ModelsCommand;
|
|
use Barryvdh\LaravelIdeHelper\Contracts\ModelHookInterface;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class UnsetMethod implements ModelHookInterface
|
|
{
|
|
public function run(ModelsCommand $command, Model $model): void
|
|
{
|
|
$command->unsetMethod('query');
|
|
}
|
|
}
|