Files
filament/tests/database/factories/SettingFactory.php
T
Dan Harrin c772c5819d fix: Search and sort same relationship table (#18499)
* fix: Search and sort on same relationship table

* Update InteractsWithTableQuery.php

* add test

* Update ColumnTest.php

* Update Group.php

* grouping tests

* clean up

* fix column qualification

* dont use joins for ordering anything

* test

* fix migrations order

* phpstan and summary issues

* update tests

* fix

* fix tests

* Update GroupingTest.php

* Revert "fix"

This reverts commit 160c3e0d18.

* Update TestsSummaries.php

* fix concurrency

* Update TestsSummaries.php

* Update 0009_modify_users_table.php

* BelongsToThrough support

* nested belongstothrough

* Update ColumnTest.php

* fix snapshots

* fix sorting based on sql
2025-11-13 22:09:14 +00:00

22 lines
563 B
PHP

<?php
namespace Filament\Tests\Database\Factories;
use Filament\Tests\Fixtures\Models\Profile;
use Filament\Tests\Fixtures\Models\Setting;
use Illuminate\Database\Eloquent\Factories\Factory;
class SettingFactory extends Factory
{
protected $model = Setting::class;
public function definition(): array
{
return [
'profile_id' => Profile::factory(),
'theme' => $this->faker->randomElement(['light', 'dark', 'auto']),
'language' => $this->faker->randomElement(['en', 'es', 'fr', 'de']),
];
}
}