minor changes
This commit is contained in:
@@ -7,9 +7,9 @@ Every notification is an instance of `LucentNotifications\Models\Notification` m
|
|||||||
|
|
||||||
### Mail notifications
|
### Mail notifications
|
||||||
The static::create function accepts a Mailable class as its mail parameter. Lucent Notifications will instanciate the new Mailable class with the following parameters:
|
The static::create function accepts a Mailable class as its mail parameter. Lucent Notifications will instanciate the new Mailable class with the following parameters:
|
||||||
- Notification $notification,
|
# Notification $notification,
|
||||||
- array $userFrom and
|
# array $userFrom and
|
||||||
- array $userTo
|
# array $userTo
|
||||||
so keep that in mind when defining your own Mailable class
|
so keep that in mind when defining your own Mailable class
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'defaults' => [
|
'notificationsSettings' => [
|
||||||
'quietHours' => ['18:00-10:00'],
|
'commented' => 'broadcast',
|
||||||
'commented' => 'both',
|
|
||||||
'assigned' => 'none',
|
'assigned' => 'none',
|
||||||
'mentioned' => 'none',
|
'mentioned' => 'none',
|
||||||
|
],
|
||||||
|
'userPreferences' => [
|
||||||
|
'quietHours' => ['18:00-10:00'],
|
||||||
'dailyBriefing' => false
|
'dailyBriefing' => false
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
@@ -11,9 +11,10 @@ return new class extends Migration
|
|||||||
*/
|
*/
|
||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('notificationsSettings', function (Blueprint $table) {
|
Schema::create('userSettings', function (Blueprint $table) {
|
||||||
$table->uuid('userId')->primary();
|
$table->uuid('userId')->primary();
|
||||||
$table->text('data');
|
$table->text('notificationsSettings');
|
||||||
|
$table->text('userPreferences');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -22,6 +23,6 @@ return new class extends Migration
|
|||||||
*/
|
*/
|
||||||
public function down(): void
|
public function down(): void
|
||||||
{
|
{
|
||||||
Schema::dropIfExists('notificationsSettings');
|
Schema::dropIfExists('userSettings');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user