minor fixes
This commit is contained in:
@@ -338,7 +338,7 @@ class IgdbService
|
||||
if (empty($w['url'])) continue;
|
||||
GameWebsite::create([
|
||||
'game_id' => $game->id,
|
||||
'category' => $w['category'],
|
||||
'category' => $w['category'] ?? null,
|
||||
'url' => $w['url'],
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ return new class extends Migration {
|
||||
Schema::create('game_websites', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('game_id')->constrained()->cascadeOnDelete();
|
||||
$table->unsignedTinyInteger('category');
|
||||
$table->unsignedTinyInteger('category')->nullable(true);
|
||||
$table->string('url');
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
class="group block bg-[#16161d] rounded-lg overflow-hidden hover:ring-1 hover:ring-purple-500 transition-all duration-200">
|
||||
<!-- Cover -->
|
||||
<div class="aspect-[3/4] bg-[#0f0f13] overflow-hidden">
|
||||
@if($game->cover_thumb_url)
|
||||
<img src="{{ $game->cover_thumb_url }}"
|
||||
@if($game->cover_url)
|
||||
<img src="{{ $game->cover_url }}"
|
||||
alt="{{ $game->title }}"
|
||||
class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-300">
|
||||
@else
|
||||
|
||||
Reference in New Issue
Block a user