Laravel app with a cost-tracked Runware.ai integration (image, video, text generation), a hard monthly EUR budget cap with live USD/EUR FX conversion, and a locally-maintained model/pricing table since Runware's model-search API doesn't expose pricing.
16 lines
444 B
PHP
16 lines
444 B
PHP
<?php
|
|
|
|
use App\Services\Runware\CurrencyRateService;
|
|
use Illuminate\Foundation\Inspiring;
|
|
use Illuminate\Support\Facades\Artisan;
|
|
use Illuminate\Support\Facades\Schedule;
|
|
|
|
Artisan::command('inspire', function () {
|
|
$this->comment(Inspiring::quote());
|
|
})->purpose('Display an inspiring quote');
|
|
|
|
Schedule::call(fn () => app(CurrencyRateService::class)->refresh())
|
|
->daily()
|
|
->name('runware:refresh-usd-eur-rate')
|
|
->onOneServer();
|