- Add AdminPanelProvider mounting panel at `/admin` with `is_admin` auth guard - Add `is_admin` boolean column to users table - Add brent_prices and price_predictions tables with appropriate indexes - Add comprehensive admin design spec covering resources, dashboard, navigation, and build order - Configure default panel with amber primary color and standard middleware stack - Add compiled Filament assets (actions.js, app.css)
31 lines
827 B
PHP
31 lines
827 B
PHP
<?php
|
|
|
|
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');
|
|
|
|
// Poll for price changes every 15 minutes
|
|
Schedule::command('fuel:poll')
|
|
->everyFifteenMinutes()
|
|
->withoutOverlapping()
|
|
->onOneServer()
|
|
->runInBackground();
|
|
|
|
// Full refresh (station metadata + prices) once daily at 3am
|
|
Schedule::command('fuel:poll --full')
|
|
->dailyAt('03:00')
|
|
->withoutOverlapping()
|
|
->onOneServer()
|
|
->runInBackground();
|
|
|
|
// Fetch FRED prices and generate oil price prediction daily at 7am
|
|
Schedule::command('oil:predict --fetch')
|
|
->dailyAt('07:00')
|
|
->withoutOverlapping()
|
|
->onOneServer()
|
|
->runInBackground();
|