mirror of
https://gh.wpcy.net/https://github.com/fairpm/aspirecloud.git
synced 2026-06-20 02:22:28 +08:00
17 lines
398 B
PHP
17 lines
398 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Services\PluginServices;
|
|
|
|
use App\Models\WpOrg\ClosedPlugin;
|
|
use App\Models\WpOrg\Plugin;
|
|
|
|
class PluginInformationService
|
|
{
|
|
public function findBySlug(string $slug): Plugin|ClosedPlugin|null
|
|
{
|
|
return
|
|
ClosedPlugin::query()->where('slug', $slug)->first()
|
|
?? Plugin::query()->where('slug', $slug)->first();
|
|
}
|
|
}
|