diff options
author | Sam Light <samlight1994@gmail.com> | 2025-01-18 20:17:47 +0000 |
---|---|---|
committer | Sam Light <samlight1994@gmail.com> | 2025-01-18 20:17:47 +0000 |
commit | eb5c48b58d72d04abb093fceb32db842ec7ab5fb (patch) | |
tree | 4cf40914cba238a46dbb99c36d83e2dfb4efc3e0 /workbench/database/factories | |
parent | 7ae6611fbcee86e6dae9890c27da329fa036717f (diff) |
Setup testing
Diffstat (limited to 'workbench/database/factories')
-rw-r--r-- | workbench/database/factories/ProductFactory.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/workbench/database/factories/ProductFactory.php b/workbench/database/factories/ProductFactory.php new file mode 100644 index 0000000..4131cb2 --- /dev/null +++ b/workbench/database/factories/ProductFactory.php @@ -0,0 +1,33 @@ +<?php + +namespace Workbench\Database\Factories; + +use Illuminate\Database\Eloquent\Factories\Factory; +use Workbench\App\Models\Product; + +/** + * @template TModel of \Workbench\App\Models\Product + * + * @extends \Illuminate\Database\Eloquent\Factories\Factory<TModel> + */ +class ProductFactory extends Factory +{ + /** + * The name of the factory's corresponding model. + * + * @var class-string<TModel> + */ + protected $model = Product::class; + + /** + * Define the model's default state. + * + * @return array<string, mixed> + */ + public function definition(): array + { + return [ + // + ]; + } +} |