# Binshops Laravel Ticket Configuration

This package uses the database table `laravelticket_settings` for its core configuration instead of a standard Laravel config file.

## Email Notifications Control
To stop the package from sending any automated emails, the following database settings have been modified:

| Setting Slug | Current Value (Disabled) | Default Value (Enabled) | Description |
|--------------|-------------------------|-------------------------|-------------|
| `assigned_notification` | `0` | `1` | Notifies agent when a new ticket is assigned. |
| `comment_notification` | `1` | `1` | Notifies users when a new comment is added. |
| `status_notification` | `0` | `1` | Notifies users when ticket status changes. |

## How to Manage These Settings

### Using Laravel Tinker (Recommended)
You can toggle these settings via the terminal using Sail:

**To Disable all emails (current state):**
```bash
./vendor/bin/sail artisan tinker --execute="DB::table('laravelticket_settings')->whereIn('slug', ['status_notification', 'comment_notification', 'assigned_notification'])->update(['value' => '0']);"
```

**To Re-enable specific emails (e.g., Comments only):**
```bash
./vendor/bin/sail artisan tinker --execute="DB::table('laravelticket_settings')->where('slug', 'comment_notification')->update(['value' => '1']);"
```

### Manual SQL Query
```sql
UPDATE laravelticket_settings SET value = '0' WHERE slug = 'assigned_notification';
```

## Other Notable Settings
- **`main_route`**: `tickets` (URLs for user dashboard)
- **`admin_route`**: `tickets-admin` (URLs for agent dashboard)
- **`queue_emails`**: `0` (Determines if emails use the Laravel Queue system)

---
*Created on 2026-02-23 to document changes made to stop automated ticketing emails.*
