/ database / factories / InternalNoteFactory.php
InternalNoteFactory.php
 1  <?php
 2  
 3  namespace Database\Factories;
 4  
 5  use App\Models\InternalNote;
 6  use Illuminate\Database\Eloquent\Factories\Factory;
 7  use Illuminate\Support\Carbon;
 8  
 9  class InternalNoteFactory extends Factory
10  {
11      protected $model = InternalNote::class;
12  
13      public function definition(): array
14      {
15          return [
16              'text' => $this->faker->text(),
17              'created_at' => Carbon::now(),
18              'updated_at' => Carbon::now(),
19          ];
20      }
21  }