new library added

This commit is contained in:
Benjamin Takats
2022-12-05 19:04:57 +01:00
parent 5735158927
commit b9265c3ec9
39 changed files with 1482 additions and 115 deletions

View File

@@ -0,0 +1,30 @@
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use App\Models\Library;
class LibraryFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Library::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition(): array
{
return [
'name' => $this->faker->name,
'language_code' => $this->faker->word,
];
}
}