for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NotificationTracker\Database\Factories;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Factories\Factory;
use NotificationTracker\Models\TrackedChannel;
use NotificationTracker\Models\TrackedNotification;
class TrackedChannelFactory extends Factory
{
protected $model = TrackedChannel::class;
public function definition(): array
return [
'notification_id' => TrackedNotification::factory(),
'channel' => 'mail',
'route' => serialize('[email protected]'),
'sent_at' => Carbon::now()->subDay(),
];
}