Added the ability to manage a group of users.

This commit is contained in:
kor-elf committed 2023-07-16 19:21:09 +06:00
1 parent ba7e52f8ac
commit 4083e2ec5e
45 files changed
+1173 -10

No files matched your search

@@ -0,0 +1,19 @@
<?php declare(strict_types=1);
namespace App\Services\Search;
use App\Contracts\Search;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Relations\Relation;
final readonly class CreateSearchInstanceCommand
{
public function __construct(
private string $abstract
) { }
public function execute(Relation | Builder $query): Search
{
return new $this->abstract($query);
}
}