Add initial Code
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
class PaymentTermsFactory extends Factory
|
||||
{
|
||||
protected $model = \App\Models\PaymentTerms::class;
|
||||
|
||||
public function definition()
|
||||
{
|
||||
return [
|
||||
'name' => $this->faker->unique()->word(),
|
||||
'description' => $this->faker->sentence(),
|
||||
'is_fixed' => $this->faker->boolean(),
|
||||
'days' => $this->faker->numberBetween(7, 60),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user