Файловый менеджер - Редактировать - /var/www/vhosts/aviointeriors.dev1.mndrn.cloud/routes/update/factories.zip
Назад
PK 1n]��@� � UserFactory.phpnu �[��� <?php namespace Database\Factories; use App\Models\User; use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Support\Facades\Hash; class UserFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = User::class; /** * Define the model's default state. * * @return array */ public function definition() { return [ 'first_name' => $this->faker->firstName, 'last_name' => $this->faker->lastName, 'password' => Hash::make($this->faker->password), 'email' => $this->faker->unique()->safeEmail, ]; } } PK 1n]��.�� � CompanyFactory.phpnu �[��� <?php namespace Database\Factories; use App\Models\Company; use Illuminate\Database\Eloquent\Factories\Factory; class CompanyFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = Company::class; /** * Define the model's default state. * * @return array */ public function definition() { return [ 'name' => $this->faker->unique()->company ]; } } PK 1n]��@� � UserFactory.phpnu �[��� PK 1n]��.�� � � CompanyFactory.phpnu �[��� PK � 7
| ver. 1.4 |
Github
|
.
| PHP 8.2.5 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка