Skip to content

Commit

Permalink
updated push error
Browse files Browse the repository at this point in the history
  • Loading branch information
shakilofficial0 committed Dec 9, 2023
1 parent 298f973 commit 60a9bd6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ jobs:
php-version: 8.2

- name: Configure Composer
env:
TEMP_ENV: ${{ SECRETS.TEMP_ENV }}
run: |
printf "%s" "$TEMP_ENV" > ".env"
composer update
composer install --optimize-autoloader --no-dev --no-interaction --prefer-dist
Expand Down
18 changes: 9 additions & 9 deletions app/Providers/ConfigUpdaterProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ public function boot(): void
{
$dataTable = DB::table('settings')->pluck('value', 'name')->toArray();
config([
"variables.templateName" => $dataTable['siteName'],
"variables.templateSuffix" => $dataTable['suffix'],
"variables.templateDescription" => $dataTable['templateDescription'],
"variables.support_mail" => $dataTable['support_mail'],
"variables.url" => $dataTable['url'],
"variables.templateKeyword" => $dataTable['templateKeyword'],
"variables.facebookUrl" => $dataTable['facebookUrl'],
"variables.twitterUrl" => $dataTable['twitterUrl'],
"variables.instagramUrl" => $dataTable['instagramUrl'],
"variables.templateName" => empty($dataTable['siteName']) ? config('variables.templateName') : $dataTable['siteName'],
"variables.templateSuffix" => empty($dataTable['suffix']) ? config('variables.templateSuffix') : $dataTable['suffix'],
"variables.templateDescription" => empty($dataTable['templateDescription']) ? config('variables.templateDescription') : $dataTable['templateDescription'],
"variables.support_mail" => empty($dataTable['support_mail']) ? config('variables.support_mail') : $dataTable['support_mail'],
"variables.url" => empty($dataTable['url']) ? config('variables.url') : $dataTable['url'],
"variables.templateKeyword" => empty($dataTable['templateKeyword']) ? config('variables.templateKeyword') : $dataTable['templateKeyword'],
"variables.facebookUrl" => empty($dataTable['facebookUrl']) ? config('variables.facebookUrl') : $dataTable['facebookUrl'],
"variables.twitterUrl" => empty($dataTable['twitterUrl']) ? config('variables.twitterUrl') : $dataTable['twitterUrl'],
"variables.instagramUrl" => empty($dataTable['instagramUrl']) ? config('variables.instagramUrl') : $dataTable['instagramUrl'],
]);
}
}

0 comments on commit 60a9bd6

Please sign in to comment.