generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
emreakay
committed
Mar 19, 2024
1 parent
f61af45
commit 9220d59
Showing
4 changed files
with
51 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ | |
|
||
use AuroraWebSoftware\Connective\Collections\ConnectiveCollection; | ||
use AuroraWebSoftware\Connective\Contracts\ConnectiveContract; | ||
use Illuminate\Database\Eloquent\Collection; | ||
use Illuminate\Database\Eloquent\Model; | ||
|
||
/** | ||
* issue actor can be one of the following: | ||
|
@@ -26,4 +28,9 @@ public function getActingIssues(string $connectionType): ConnectiveCollection; | |
* ['channel' => 'email', 'email' => '[email protected]'] | ||
*/ | ||
public function getIssueReminderConfig(): array; | ||
|
||
/** | ||
* @return Collection<int, Model&IssueActorModelContract> | ||
*/ | ||
public static function searchIssueActor(string $searchTerm): Collection; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
use AuroraWebSoftware\AIssue\Traits\AIssueActor; | ||
use AuroraWebSoftware\Connective\Contracts\ConnectiveContract; | ||
use AuroraWebSoftware\Connective\Traits\Connective; | ||
use Illuminate\Database\Eloquent\Collection; | ||
use Illuminate\Database\Eloquent\Model; | ||
|
||
/** | ||
|
@@ -32,4 +33,14 @@ public function getIssueReminderConfig(): array | |
{ | ||
return ['channel' => 'email', 'email' => '[email protected]']; | ||
} | ||
|
||
/** | ||
* @return Collection<IssueActorModelContract> | ||
* | ||
* @phpstan-ignore-next-line | ||
*/ | ||
public static function searchIssueActor(string $searchTerm): Collection | ||
{ | ||
return User::query()->where('name', 'like', '%'.$searchTerm.'%')->get(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters