D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
hms.dentostock.com
/
database
/
factories
/
Filename :
AdminFactory.php
back
Copy
<?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 = admin::class; /** * Define the model's default state. */ public function definition(): array { return [ 'user_id' => $this->faker->randomDigitNotNull(), 'created_at' => $this->faker->date('Y-m-d H:i:s'), 'updated_at' => $this->faker->date('Y-m-d H:i:s'), ]; } }