You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
482 B
PHTML
23 lines
482 B
PHTML
4 weeks ago
|
<?php
|
||
|
|
||
|
namespace Database\Factories;
|
||
|
|
||
|
use App\Models\Invoice;
|
||
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||
|
use Illuminate\Support\Carbon;
|
||
|
|
||
|
class InvoiceFactory extends Factory
|
||
|
{
|
||
|
protected $model = Invoice::class;
|
||
|
|
||
|
public function definition(): array
|
||
|
{
|
||
|
return [
|
||
|
'created_at' => Carbon::now(),
|
||
|
'gst' => true,
|
||
|
'pst' => $this->faker->boolean(25),
|
||
|
'updated_at' => Carbon::now(),
|
||
|
];
|
||
|
}
|
||
|
}
|