Skip to content

Commit 9c8d873

Browse files
authored
Merge pull request #226 from conedevelopment/translatable
Translatable
2 parents 548dd67 + bba3cbd commit 9c8d873

File tree

19 files changed

+596
-91
lines changed

19 files changed

+596
-91
lines changed

composer.lock

Lines changed: 66 additions & 62 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
namespace Cone\Root\Database\Factories;
4+
5+
use Cone\Root\Models\Translation;
6+
use Illuminate\Database\Eloquent\Factories\Factory;
7+
8+
class TranslationFactory extends Factory
9+
{
10+
/**
11+
* The name of the factory's corresponding model.
12+
*
13+
* @var class-string<\Cone\Root\Models\Translation>
14+
*/
15+
protected $model = Translation::class;
16+
17+
/**
18+
* Define the model's default state.
19+
*/
20+
public function definition(): array
21+
{
22+
return [
23+
'locale' => $this->faker->locale(),
24+
];
25+
}
26+
}

0 commit comments

Comments
 (0)