芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/public_html/database/factories/TicketGroupFactory.php
*/ class TicketGroupFactory extends Factory { protected $model = TicketGroup::class; /** * Define the model's default state. * * @return array
*/ public function definition() { return [ 'group_name' => fake()->realText(15), 'created_at' => fake()->randomElement([date('Y-m-d', strtotime( '+'.mt_rand(0, 7).' days')), fake()->dateTimeThisYear($max = 'now')]), 'updated_at' => fake()->randomElement([date('Y-m-d', strtotime( '+'.mt_rand(0, 7).' days')), fake()->dateTimeThisYear($max = 'now')]), ]; } }