mirror of
https://github.com/Cybrarist/Discount-Bandit.git
synced 2026-11-24 19:49:54 +01:00
- fix type when filtering product by price met target. - fix the lowest price was overridden if price wasn't crawled. - fix store tabs not working - fix some european amazon using "." as thousands separator. - keep last 3 days of logs only. - added volume to .env to fix 2FA not working after restarting container - added volume for database - New Stores: - best buy New Features: - add other users to the system and manage their tokens. - add telegram notification. - add percentage drop. - robot detection for amazon ( if the system was detected as robot, it will stop executing and try the next product, the same product that was blocked will be crawled again in the next batch) Took 6 hours 50 minutes
54 lines
1.4 KiB
PHP
54 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Models\User;
|
|
use Filament\Tables\Enums\FiltersLayout;
|
|
use Filament\Tables\Table;
|
|
use Illuminate\Support\Facades\Auth;
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Spatie\Health\Checks\Checks\CacheCheck;
|
|
use Spatie\Health\Checks\Checks\DatabaseCheck;
|
|
use Spatie\Health\Checks\Checks\EnvironmentCheck;
|
|
use Spatie\Health\Checks\Checks\PingCheck;
|
|
use Spatie\Health\Checks\Checks\ScheduleCheck;
|
|
use Spatie\Health\Facades\Health;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
// URL::forceScheme('https');
|
|
|
|
// if (config('settings.disable_auth') && ! app()->runningInConsole())
|
|
// Auth::login(User::first());
|
|
|
|
|
|
Table::configureUsing(function (Table $table): void {
|
|
$table->filtersLayout(FiltersLayout::AboveContentCollapsible)
|
|
->paginationPageOptions([ 25, 50 , 100 , 150 ,200,'all'])
|
|
->deferLoading();
|
|
});
|
|
|
|
|
|
Health::checks([
|
|
CacheCheck::new(),
|
|
DatabaseCheck::new(),
|
|
EnvironmentCheck::new(),
|
|
PingCheck::new()->url('https://google.com')->failureMessage("Couldn't access the internet"),
|
|
ScheduleCheck::new(),
|
|
]);
|
|
}
|
|
}
|