-
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.
Merge pull request #350 from jesusantguerrero/master
Merge master into v1.1.0
- Loading branch information
Showing
160 changed files
with
11,585 additions
and
24,230 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Laravel App Deployment | ||
name: Loger Demo Deployment | ||
|
||
on: | ||
push: | ||
|
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,34 @@ | ||
{ | ||
frankenphp | ||
order mercure after encode | ||
order php_server before file_server | ||
{$GLOBAL_OPTIONS} | ||
} | ||
|
||
# The domain name of your server | ||
dev-loger.neatlancer.com { | ||
root * public/ | ||
encode zstd gzip | ||
php_server { | ||
resolve_root_symlink | ||
} | ||
|
||
mercure { | ||
# Transport to use (default to Bolt) | ||
transport_url {$MERCURE_TRANSPORT_URL:bolt://mercure.db} | ||
# Publisher JWT key | ||
publisher_jwt {env.MERCURE_PUBLISHER_JWT_KEY} | ||
# Subscriber JWT key | ||
subscriber_jwt {env.MERCURE_SUBSCRIBER_JWT_KEY} | ||
# Permissive configuration for the development environment | ||
cors_origins * | ||
publish_origins * | ||
demo | ||
anonymous | ||
subscriptions | ||
# Extra directives | ||
{$MERCURE_EXTRA_DIRECTIVES} | ||
} | ||
|
||
{$CADDY_SERVER_EXTRA_DIRECTIVES} | ||
} |
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,38 @@ | ||
{ | ||
frankenphp | ||
order mercure after encode | ||
order php_server before file_server | ||
{$GLOBAL_OPTIONS} | ||
} | ||
|
||
# The domain name of your server | ||
localhost { | ||
# Set the webroot to the public/ dir | ||
root * public/ | ||
# Enable compression (optional) | ||
encode zstd gzip | ||
# Execute PHP files in the current directory and serve assets | ||
php_server { | ||
# Required for the public/storage/ dir | ||
resolve_root_symlink | ||
} | ||
|
||
mercure { | ||
# Transport to use (default to Bolt) | ||
transport_url {$MERCURE_TRANSPORT_URL:bolt://mercure.db} | ||
# Publisher JWT key | ||
publisher_jwt {env.MERCURE_PUBLISHER_JWT_KEY} | ||
# Subscriber JWT key | ||
subscriber_jwt {env.MERCURE_SUBSCRIBER_JWT_KEY} | ||
# Permissive configuration for the development environment | ||
cors_origins * | ||
publish_origins * | ||
demo | ||
anonymous | ||
subscriptions | ||
# Extra directives | ||
{$MERCURE_EXTRA_DIRECTIVES} | ||
} | ||
|
||
{$CADDY_SERVER_EXTRA_DIRECTIVES} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace App\Console\Commands; | ||
|
||
use DateTime; | ||
use App\Models\Team; | ||
use Illuminate\Console\Command; | ||
|
||
use App\Domains\Transaction\Services\TransactionService; | ||
|
||
class FixLiabilitiesSpent extends Command | ||
{ | ||
|
||
protected $signature = 'app:fix-liabilities-spent {teamId}'; | ||
|
||
|
||
protected $description = 'change counter account for liability transactions'; | ||
|
||
public function handle(TransactionService $transactionService) | ||
{ | ||
|
||
$transactions = $transactionService->getCreditCardSpentTransactions($this->argument('teamId')); | ||
dd($transactions->sum('total')); | ||
foreach ($transactions as $transaction) { | ||
$transactions->id; | ||
} | ||
} | ||
} |
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.