D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
kader-lms.com
/
database
/
factories
/
Filename :
SmCourseFactory.php
back
Copy
<?php namespace Database\Factories; use App\SmCourse; use App\Models\Model; use App\SmCourseCategory; use Illuminate\Database\Eloquent\Factories\Factory; class SmCourseFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = SmCourse::class; /** * Define the model's default state. * * @return array */ public function definition() { return [ 'title' => $this->faker->word(20), 'image' => 'public/uploads/testimonial/testimonial_1.jpg', ]; } }