-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added filament for external lists (#708)
- Loading branch information
Showing
46 changed files
with
1,707 additions
and
190 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
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Events\Base\List; | ||
|
||
use App\Constants\Config\ServiceConstants; | ||
use App\Events\Base\BaseCreatedEvent; | ||
use Illuminate\Support\Facades\Config; | ||
|
||
/** | ||
* Class ListCreatedEvent. | ||
* | ||
* @template TModel of \App\Models\BaseModel | ||
* | ||
* @extends BaseCreatedEvent<TModel> | ||
*/ | ||
abstract class ListCreatedEvent extends BaseCreatedEvent | ||
{ | ||
/** | ||
* Get Discord channel the message will be sent to. | ||
* | ||
* @return string | ||
*/ | ||
public function getDiscordChannel(): string | ||
{ | ||
return Config::get(ServiceConstants::ADMIN_DISCORD_CHANNEL_QUALIFIED); | ||
} | ||
|
||
/** | ||
* Determine if the message should be sent. | ||
* | ||
* @return bool | ||
* | ||
* @noinspection PhpMissingParentCallCommonInspection | ||
*/ | ||
public function shouldSendDiscordMessage(): bool | ||
{ | ||
return true; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Events\Base\List; | ||
|
||
use App\Constants\Config\ServiceConstants; | ||
use App\Events\Base\BaseDeletedEvent; | ||
use Illuminate\Support\Facades\Config; | ||
|
||
/** | ||
* Class ListDeletedEvent. | ||
* | ||
* @template TModel of \App\Models\BaseModel | ||
* | ||
* @extends BaseDeletedEvent<TModel> | ||
*/ | ||
abstract class ListDeletedEvent extends BaseDeletedEvent | ||
{ | ||
/** | ||
* Get Discord channel the message will be sent to. | ||
* | ||
* @return string | ||
*/ | ||
public function getDiscordChannel(): string | ||
{ | ||
return Config::get(ServiceConstants::ADMIN_DISCORD_CHANNEL_QUALIFIED); | ||
} | ||
|
||
/** | ||
* Determine if the message should be sent. | ||
* | ||
* @return bool | ||
* | ||
* @noinspection PhpMissingParentCallCommonInspection | ||
*/ | ||
public function shouldSendDiscordMessage(): bool | ||
{ | ||
return true; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Events\Base\List; | ||
|
||
use App\Constants\Config\ServiceConstants; | ||
use App\Events\Base\BaseRestoredEvent; | ||
use Illuminate\Support\Facades\Config; | ||
|
||
/** | ||
* Class ListRestoredEvent. | ||
* | ||
* @template TModel of \App\Models\BaseModel | ||
* | ||
* @extends BaseRestoredEvent<TModel> | ||
*/ | ||
abstract class ListRestoredEvent extends BaseRestoredEvent | ||
{ | ||
/** | ||
* Get Discord channel the message will be sent to. | ||
* | ||
* @return string | ||
*/ | ||
public function getDiscordChannel(): string | ||
{ | ||
return Config::get(ServiceConstants::ADMIN_DISCORD_CHANNEL_QUALIFIED); | ||
} | ||
|
||
/** | ||
* Determine if the message should be sent. | ||
* | ||
* @return bool | ||
* | ||
* @noinspection PhpMissingParentCallCommonInspection | ||
*/ | ||
public function shouldSendDiscordMessage(): bool | ||
{ | ||
return true; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Events\Base\List; | ||
|
||
use App\Constants\Config\ServiceConstants; | ||
use App\Events\Base\BaseUpdatedEvent; | ||
use Illuminate\Support\Facades\Config; | ||
|
||
/** | ||
* Class ListUpdatedEvent. | ||
* | ||
* @template TModel of \App\Models\BaseModel | ||
* | ||
* @extends BaseUpdatedEvent<TModel> | ||
*/ | ||
abstract class ListUpdatedEvent extends BaseUpdatedEvent | ||
{ | ||
/** | ||
* Get Discord channel the message will be sent to. | ||
* | ||
* @return string | ||
*/ | ||
public function getDiscordChannel(): string | ||
{ | ||
return Config::get(ServiceConstants::ADMIN_DISCORD_CHANNEL_QUALIFIED); | ||
} | ||
|
||
/** | ||
* Determine if the message should be sent. | ||
* | ||
* @return bool | ||
* | ||
* @noinspection PhpMissingParentCallCommonInspection | ||
*/ | ||
public function shouldSendDiscordMessage(): bool | ||
{ | ||
return true; | ||
} | ||
} |
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
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
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
Oops, something went wrong.