%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : addictionfreeind ( 1003) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Directory : /home/addictionfreeind/public_html/admin1/database/factories/ |
Upload File : |
<?php
namespace Database\Factories;
use App\Models\Contract;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Factories\Factory;
class ContractFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Contract::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'subject' => fake()->realText(20),
'amount' => $amount = fake()->numberBetween(100, 1000),
'original_amount' => $amount,
'start_date' => $start = fake()->dateTimeThisMonth(now()),
'original_start_date' => $start,
'end_date' => $end = now()->addMonths(fake()->numberBetween(1, 5))->format('Y-m-d'),
'original_end_date' => $end,
'description' => fake()->paragraph,
'contract_detail' => fake()->realText(300),
];
}
}