| Conditions | 1 |
| Paths | 1 |
| Total Lines | 31 |
| Code Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 11 | public function run(): void |
||
| 12 | { |
||
| 13 | // Create default channels |
||
| 14 | NotificationChannel::create([ |
||
| 15 | 'title' => 'Email', |
||
| 16 | 'type' => 'email', |
||
| 17 | 'icon' => 'heroicon-o-envelope', |
||
| 18 | 'is_active' => true, |
||
| 19 | ]); |
||
| 20 | |||
| 21 | NotificationChannel::create([ |
||
| 22 | 'title' => 'Slack', |
||
| 23 | 'type' => 'slack', |
||
| 24 | 'icon' => 'heroicon-o-chat-bubble-left-right', |
||
| 25 | 'is_active' => true, |
||
| 26 | ]); |
||
| 27 | |||
| 28 | NotificationChannel::create([ |
||
| 29 | 'title' => 'SMS', |
||
| 30 | 'type' => 'sms', |
||
| 31 | 'icon' => 'heroicon-o-device-phone-mobile', |
||
| 32 | 'is_active' => true, |
||
| 33 | ]); |
||
| 34 | |||
| 35 | // Create default events |
||
| 36 | NotificationEvent::create([ |
||
| 37 | 'group' => 'Projects', |
||
| 38 | 'name' => 'New Project Created', |
||
| 39 | 'key' => 'project.created', |
||
| 40 | 'description' => 'When a new project is created', |
||
| 41 | 'is_active' => true, |
||
| 42 | ]); |
||
| 46 |