<?php

namespace Database\Factories;

use App\Models\AllDonation;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
/**
//  * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Model>
 */
class AllDonationFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    protected $model = AllDonation::class;
    public function definition()
    {
        return [
            'donor' => $this->faker->name,
            'amount' => $this->faker->randomDigit,
            'category_donated_to' => $this->faker->company,
            // 'created_at' => now(),
        ];
    }

	/**
	 * Define the model's default state.
	 * 
	 * @return array<string, mixed>
	 */
	public function getModel() {
		return $this->model;
	}
	
	/**
	 * Define the model's default state.
	 * 
	 * @param array<string, mixed> $model Define the model's default state.
	 * @return self
	 */
	public function setModel($model): self {
		$this->model = $model;
		return $this;
	}
}
