%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/home/forge/api-takeaseat.eco-n-tech.co.uk/database/factories/
Upload File :
Create Path :
Current File : //proc/self/root/home/forge/api-takeaseat.eco-n-tech.co.uk/database/factories/BookingFactory.php

<?php

namespace Database\Factories;

use App\Models\Payment;
use App\Models\Booking;
use Illuminate\Database\Eloquent\Factories\Factory;

class BookingFactory extends Factory
{
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = Booking::class;

    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            'user_id' => $this->faker->numberBetween(1, 100),
            'therapist_id' => $this->faker->numberBetween(1, 100),
            'payment_id' => Payment::factory(),
            'status' => 1,
            'start_date' => $this->faker->dateTime($max = 'now', $timezone = 'Europe/London'),
            'end_date' => $this->faker->dateTime($max = 'now', $timezone = 'Europe/London')
        ];
    }
}

Zerion Mini Shell 1.0