D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
kader-lms.com
/
database
/
factories
/
Filename :
SmNoticeBoardFactory.php
back
Copy
<?php namespace Database\Factories; use App\SmNoticeBoard; use Illuminate\Database\Eloquent\Factories\Factory; class SmNoticeBoardFactory extends Factory { protected $model = SmNoticeBoard::class; /** * Define the model's default state. * * @return array */ public function definition() { return [ 'notice_title' => $this->faker->title, 'notice_message' => $this->faker->text(200), 'notice_date' => $this->faker->date, 'publish_on' => $this->faker->date, 'inform_to' => '1,2,3,5,6', 'is_published' => 1 ]; } }