This commit is contained in:
salam committed 2025-12-10 09:06:19 +01:00
1 parent 15bc930bad
commit 10d0bfd096
7 files changed
+85 -3

No files matched your search

@@ -26,7 +26,8 @@ class Fixtures
/**
* Delete
*/
$info = Event::where('starttime', '<', $now->toDateTimeString())->delete();
$info = 0;
// $info = Event::where('starttime', '<', $now->toDateTimeString())->delete();
if ($debug) {
Notice::note("Deleted: $info");
+1 -1
View File
@@ -35,7 +35,7 @@ class Xml
} elseif (! is_readable($filename)) {
Notice::note("Error: File $filename is not readable.", 'r', 1);
} else {
$data = simplexml_load_file($url, 'SimpleXMLElement', LIBXML_NOCDATA);
$data = simplexml_load_file($filename, 'SimpleXMLElement', LIBXML_NOCDATA);
if ($data === false) {
Notice::note("Error: Failed to load XML from $filename", 'r', 1);
foreach (libxml_get_errors() as $error) {
@@ -62,6 +62,7 @@ class EventResource extends Resource
public static function getEloquentQuery(): Builder
{
return parent::getEloquentQuery()->withoutGlobalScopes()->with('odds_3way')->where('starttime', '>', Carbon::now());
return parent::getEloquentQuery()->withoutGlobalScopes()->with('odds_3way');
// return parent::getEloquentQuery()->withoutGlobalScopes()->with('odds_3way')->where('starttime', '>', Carbon::now());
}
}
+10
View File
@@ -0,0 +1,10 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class AlarmSetting extends Model
{
//
}
+10
View File
@@ -0,0 +1,10 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ComparatoreSetting extends Model
{
//
}
@@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('alarm_settings', function (Blueprint $table) {
$table->id();
$table->foreignId('client_id')->constrained()->cascadeOnDelete();
$table->integer('sport_id')->default(0);
$table->integer('bookmaker_id')->default(0);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('alarm_settings');
}
};
@@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('comparatore_settings', function (Blueprint $table) {
$table->id();
$table->foreignId('client_id')->constrained()->cascadeOnDelete();
$table->integer('sport_id')->default(0);
$table->integer('bettype_id')->default(0);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('comparatore_settings');
}
};