You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
617 B
PHP
28 lines
617 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Title>
|
|
*/
|
|
class TitleFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'name' => 'Mod ' . faker()->name(),
|
|
$table->foreignId('game_id')->constrained('games');
|
|
$table->text('name');
|
|
$table->string('language');
|
|
$table->timestamps();
|
|
];
|
|
}
|
|
}
|