mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 10:07:12 +00:00
* Fix unsetMethod in ModelsCommand * composer fix-style --------- Co-authored-by: Barry vd. Heuvel <[email protected]> Co-authored-by: laravel-ide-helper <[email protected]>
18 lines
450 B
PHP
18 lines
450 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('newmodelquery');
|
|
}
|
|
}
|