Skip to content

Commit

Permalink
Merge pull request #226 from conedevelopment/translatable
Browse files Browse the repository at this point in the history
Translatable
  • Loading branch information
iamgergo authored Nov 13, 2024
2 parents 548dd67 + bba3cbd commit 9c8d873
Show file tree
Hide file tree
Showing 19 changed files with 596 additions and 91 deletions.
128 changes: 66 additions & 62 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions database/factories/TranslationFactory.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

namespace Cone\Root\Database\Factories;

use Cone\Root\Models\Translation;
use Illuminate\Database\Eloquent\Factories\Factory;

class TranslationFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var class-string<\Cone\Root\Models\Translation>
*/
protected $model = Translation::class;

/**
* Define the model's default state.
*/
public function definition(): array
{
return [
'locale' => $this->faker->locale(),
];
}
}
Loading

0 comments on commit 9c8d873

Please sign in to comment.