backend fixes, better case handling, some frontend changes
This commit is contained in:
@@ -18,9 +18,10 @@ class TlaFactory extends Factory
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'abbreviation' => fake()->word() . ' ' . fake()->word() . ' ' . fake()->word(),
|
||||
'acronym' => fake()->word() . ' ' . fake()->word() . ' ' . fake()->word(),
|
||||
'hint' => fake()->sentence(),
|
||||
'language' => fake()->randomElement(['hu', 'en']),
|
||||
'context' => fake()->paragraph(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,10 +13,11 @@ return new class extends Migration
|
||||
{
|
||||
Schema::create('tla', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('abbreviation');
|
||||
$table->string('acronym');
|
||||
$table->string('hint')->nullable();
|
||||
$table->enum('language', ['hu', 'en']);
|
||||
$table->date('used')->nullable();
|
||||
$table->longText('context')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user