- Added migration for ticket assignment and comments (`assigned_user_id` and `ticket_replies` table). - Implemented `TicketAssignedNotification` and `TicketCommentedNotification`. - Created `ReplyData`, `TicketListData`, and `PostReplyRequest` data classes. - Introduced `ResolveNotificationRouteController` for modular notification redirection. - Updated UI to support assigning users and posting comments on tickets. - User is navigated to comments page when clicked on the ticket, upon navigation ticket details modal is opened. - Extended tests to cover assignments, comments, status transitions, and notifications.
24 lines
475 B
PHP
24 lines
475 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Enums\TicketStatusEnum;
|
|
use App\Models\TicketStatus;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class TicketStatusSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
$data = array_map(fn ($value) => ['name' => $value], TicketStatusEnum::values());
|
|
|
|
TicketStatus::query()
|
|
->upsert($data, ['name'], ['name', 'updated_at']);
|
|
}
|
|
}
|