Skip to content

Commit 0546139

Browse files
Merge pull request #54 from ericvanjohnson/main
Fixing some small Honeybager alerts
2 parents 8b5c34f + cc0156e commit 0546139

10 files changed

Lines changed: 682 additions & 5 deletions

File tree

database/factories/SponsorFactory.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,26 @@ public function definition(): array
3333
];
3434
}
3535

36+
/**
37+
* Create a sponsor without a website.
38+
*/
39+
public function withoutWebsite(): static
40+
{
41+
return $this->state(fn (array $attributes) => [
42+
'website' => null,
43+
]);
44+
}
45+
46+
/**
47+
* Create a sponsor with an HTTP logo URL (avoids S3 dependency in tests).
48+
*/
49+
public function withTestLogo(): static
50+
{
51+
return $this->state(fn (array $attributes) => [
52+
'logo' => 'https://example.com/logos/test-logo.png',
53+
]);
54+
}
55+
3656
/**
3757
* Create PHP Architect sponsor with specific data.
3858
*/
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
return new class extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*/
12+
public function up(): void
13+
{
14+
Schema::table('sponsors', function (Blueprint $table) {
15+
$table->string('website')->nullable()->change();
16+
});
17+
}
18+
};

0 commit comments

Comments
 (0)