このリポジトリは2023-09-09にアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
kikikan/backend/database/factories/AdminFactory.php

33 行
680 B
PHP

<?php
namespace Database\Factories;
use \App\Models\Admin;
use Illuminate\Support\Facades\Hash;
use Illuminate\Database\Eloquent\Factories\Factory;
class AdminFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Admin::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'email' => $this->faker->email,
'password' => Hash::make('password'),
'created_at' => $this->faker->dateTime,
'updated_at' => $this->faker->dateTime,
];
}
}