Add (article): ai gen, front views
This commit is contained in:
13
app/Helpers/Global/platform_helper.php
Normal file
13
app/Helpers/Global/platform_helper.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
if (! function_exists('get_slack_channel_by_env')) {
|
||||
|
||||
function get_slack_channel_by_env($slack_channel = 'slack')
|
||||
{
|
||||
if (app()->environment() == 'local') {
|
||||
return config("platform.notifications.{$slack_channel}.development_channel");
|
||||
} else {
|
||||
return config("platform.notifications.{$slack_channel}.production_channel");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user