feat: Add export import

This commit is contained in:
Attila Kerekes
2022-11-26 14:35:36 +01:00
committed by Attila Kerekes
parent 2ee5d07e48
commit bb5a078f35
20 changed files with 505 additions and 21 deletions

View File

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