PHP Classes

File: apps/ApiGateway/database/factories/UserFactory.php

Recommend this page to a friend!
  Classes of mohammad anzawi   PHP Hotel Booking Available   apps/ApiGateway/database/factories/UserFactory.php   Download  
File: apps/ApiGateway/database/factories/UserFactory.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Hotel Booking Available
Search for hotels that are available for booking
Author: By
Last change:
Date: 2 years ago
Size: 541 bytes
 

Contents

Class file image Download
<?php

namespace Database\Factories;

use
App\Models\User;
use
Illuminate\Database\Eloquent\Factories\Factory;

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 [
           
'name' => $this->faker->name,
           
'email' => $this->faker->unique()->safeEmail,
        ];
    }
}