mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-08 10:39:27 +01:00
Use Model::find()²
This commit is contained in:
parent
92484fa94d
commit
427c1187a2
@ -16,8 +16,7 @@ class DisablePluginCommand extends Command
|
||||
{
|
||||
$id = $this->argument('id') ?? $this->choice('Plugin', Plugin::pluck('name', 'id')->toArray());
|
||||
|
||||
/** @var ?Plugin $plugin */
|
||||
$plugin = Plugin::where('id', $id)->first();
|
||||
$plugin = Plugin::find($id);
|
||||
|
||||
if (!$plugin) {
|
||||
$this->error('Plugin does not exist!');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user