/
home
/
sditechnicalteam
/
public_html
/
database
/
factories
/
File Upload :
llllll
Current File: //home/sditechnicalteam/public_html/database/factories/ProductFactory.php
<?php namespace Database\Factories; use App\Models\Product; use Illuminate\Database\Eloquent\Factories\Factory; class ProductFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = Product::class; /** * Define the model's default state. * * @return array */ public function definition() { $productArray = [ 'Tars', 'Picard', 'Cli-twitter', 'Modify Application', 'Odyssey', 'Angkor', 'Server Installation', 'Web Installation', 'Project Management', 'User Management', 'Eyeq', 'School Management', 'Restaurant Management', 'Examination System Project', 'Cinema Ticket Booking System', 'Airline Reservation System', 'Website Copier Project', 'Chat Application', 'Payment Billing System', 'Identification System', 'Document management System', 'Live Meeting' ]; return [ 'name' => fake()->randomElement($productArray), 'price' => fake()->numberBetween(100, 1000), 'allow_purchase' => 1, 'description' => fake()->paragraph, ]; } }
Copyright ©2k19 -
Hexid
|
Tex7ure