Compare commits

..

5 Commits

Author SHA1 Message Date
hackerESQ d1111ad4a4 chore: upgrade deps 2025-08-28 21:55:34 -05:00
hackerESQ f49a4b036e chore: upgrade to laravel 12 2025-08-28 21:31:37 -05:00
hackerESQ 1e41296a09 chore: clean up 2025-08-28 21:25:09 -05:00
hackerESQ 90a1f72abc chore: cleanup old files 2025-08-28 21:23:43 -05:00
Shift 44d2716406 Add .shift to open Pull Request 2025-08-29 02:19:56 +00:00
6 changed files with 11 additions and 10 deletions
+3 -3
View File
@@ -21,9 +21,9 @@ class HoldingController extends Controller
$query->where('transactions.symbol', $symbol);
},
])
->symbol($symbol)
->portfolio($portfolio->id)
->firstOrFail();
->symbol($symbol)
->portfolio($portfolio->id)
->firstOrFail();
$formattedTransactions = $holding->getFormattedTransactions();
+3 -2
View File
@@ -5,8 +5,9 @@ declare(strict_types=1);
namespace App\Rules;
use App\Models\Portfolio;
use Illuminate\Contracts\Validation\ValidationRule;
use App\Models\Transaction;
use Illuminate\Support\Carbon;
use Illuminate\Contracts\Validation\ValidationRule;
class QuantityValidationRule implements ValidationRule
{
@@ -20,7 +21,7 @@ class QuantityValidationRule implements ValidationRule
protected ?string $symbol,
protected ?string $transactionType,
protected string|Carbon|null $date
) {}
) { }
/**
* Validate the attribute.
+1 -1
View File
@@ -35,7 +35,7 @@
"laravel/sail": "^1.26",
"mockery/mockery": "^1.6",
"nunomaduro/collision": "^8.0",
"phpunit/phpunit": "^11.0.1"
"phpunit/phpunit": "^11.0"
},
"repositories": [
{
+1 -1
View File
@@ -40,7 +40,7 @@ return [
*/
'components' => [
'spotlight' => [
'class' => App\Support\Spotlight::class,
'class' => 'App\Support\Spotlight',
],
],
];
@@ -52,10 +52,10 @@ new class extends Component
{{ Number::currency($holding->dividends_earned ?? 0, $holding->market_data->currency) }}
</p>
<p class="pt-2 text-sm" title="{{ \Illuminate\Support\Carbon::parse($holding->market_data->updated_at)->toIso8601String() }}">
<p class="pt-2 text-sm" title="{{ \Carbon\Carbon::parse($holding->market_data->updated_at)->toIso8601String() }}">
{{ __('Last Refreshed') }}:
{{ !is_null($holding->market_data->updated_at)
? \Illuminate\Support\Carbon::parse($holding->market_data->updated_at)->diffForHumans()
? \Carbon\Carbon::parse($holding->market_data->updated_at)->diffForHumans()
: '' }}
</p>
</div>
@@ -98,6 +98,6 @@ new class extends Component
{{ Number::currency($row->dividends_earned ?? 0, $row->market_data->currency) }}
@endscope
@scope('cell_market_data_updated_at', $row)
{{ \Illuminate\Support\Carbon::parse($row->market_data_updated_at)->diffForHumans() }}
{{ \Carbon\Carbon::parse($row->market_data_updated_at)->diffForHumans() }}
@endscope
</x-table>