D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
school.dentostock.com
/
database
/
factories
/
Filename :
SmSchoolFactory.php
back
Copy
<?php namespace Database\Factories; use App\SmSchool; use Faker\Generator as Faker; use Illuminate\Database\Eloquent\Factories\Factory; class SmSchoolFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = SmSchool::class; /** * Define the model's default state. * * @return array */ public $i=1; public function definition() { $i=$this->i++; return [ 'school_name'=>$this->faker->colorName . $i, 'email'=>'school_'.$i.'@infixedu.com', 'domain'=> 'school'.$i, 'created_at' => date('Y-m-d h:i:s'), 'starting_date' => date('Y-m-d'), 'is_email_verified' => 1, ]; } }