Shadow-Here


Server : Apache
System : Linux methusalix2 3.16.0-11-amd64 #1 SMP Debian 3.16.84-1 (2020-06-09) x86_64
User : hios ( 1437)
PHP Version : 5.6.40-0+deb8u12
Disable Function : proc_close,proc_open,dl,shell_exec,passthru
Directory :  /home/priorityservice-dev.1697609569/laravel/database/factories/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :
Current File : /home/priorityservice-dev.1697609569/laravel/database/factories/ModelFactory.php
<?php

/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| Here you may define all of your model factories. Model factories give
| you a convenient way to create models for testing and seeding your
| database. Just tell the factory how a default model should look.
|
*/

$factory->define(App\Models\User::class, function (Faker\Generator $faker) {
	static $password;

	return [
	'name' => $faker->name,
	'email' => $faker->safeEmail,
	'password' => $password ?: $password = bcrypt('secret'),
	'remember_token' => str_random(10),
	];
});

$factory->define(App\Models\Registration::class, function (Faker\Generator $faker) {
	return [
	'email' => $faker->email,
	'vin' => "WF05XXGCD56Y36572",
	'license_number' => "",
	'installation_date' => $faker->date(),
	'vehicle_type' => $faker->company,
	'vehicle_model' => $faker->name,
	'serial_number' => $faker->numberBetween(10000,99999)
	];
});

$factory->define(App\Models\Question::class, function (Faker\Generator $faker) {
	return [
	'question' => 'Is this your first parking heater from Webasto?',
	'type_id' => '1',
	];
});

$factory->define(App\Models\Question_type::class, function (Faker\Generator $faker) {
	return [
	'type' => 'Boolean'
	];
});

Samx