40 行
807 B
PHP
40 行
807 B
PHP
![]() |
<?php
|
||
|
|
||
|
namespace Database\Factories;
|
||
|
|
||
|
use App\Models\Admin;
|
||
|
// use Illuminate\Database\Eloquent\Factories\Factory;
|
||
|
|
||
|
// class AdminFactory extends Factory
|
||
|
// {
|
||
|
// /**
|
||
|
// * The name of the factory's corresponding model.
|
||
|
// *
|
||
|
// * @var string
|
||
|
// */
|
||
|
// protected $model = Model::class;
|
||
|
|
||
|
// /**
|
||
|
// * Define the model's default state.
|
||
|
// *
|
||
|
// * @return array
|
||
|
// */
|
||
|
// public function definition()
|
||
|
// {
|
||
|
// return [
|
||
|
// //
|
||
|
// ];
|
||
|
// }
|
||
|
// }
|
||
|
|
||
|
use Faker\Generator as Faker;
|
||
|
|
||
|
$factory->define(Admin::class, function(Faker $faker){return[
|
||
|
'id' => $faker,
|
||
|
'email' => $faker,
|
||
|
'password' => $faker,
|
||
|
'remember_token' => $faker,
|
||
|
'created_at' => $faker,
|
||
|
'updated_at' => $faker,
|
||
|
];
|
||
|
});
|