mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-01 15:09:33 +08:00
c772c5819d
* 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
22 lines
563 B
PHP
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']),
|
|
];
|
|
}
|
|
}
|