-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
64aa9dc
commit fb4de90
Showing
5 changed files
with
128 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
return [ | ||
'navigation_sort' => 2001, | ||
'navigation_label' => 'Moox Expiry', | ||
|
||
'user_model' => \Moox\Press\Models\WpUser::class, | ||
'default_notified_to' => 1, | ||
|
||
// Disable manual action buttons in UI | ||
'create_expiry_action' => false, | ||
'collect_expiries_action' => true, | ||
'send_summary_action' => true, | ||
|
||
// Jobs for expiries, create custom jobs if needed | ||
// use and customize CollectExpiries instead of DemoExpiries | ||
// DemoExpiries is just a job for creating demo data: | ||
// 'collect_expiries_job' => \Moox\Expiry\Jobs\CollectExpiries::class, | ||
'collect_expiries_jobs' => [ | ||
\Moox\Expiry\Jobs\CollectExpiries::class, | ||
// Add more jobs here if needed. | ||
], | ||
'send_summary_job' => \Moox\Expiry\Jobs\SendSummary::class, | ||
'api' => true, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
return [ | ||
'navigation_sort' => 2001, | ||
|
||
// Wire with one or more user models | ||
'user_models' => [ | ||
'App Users' => \App\Models\User::class, | ||
], | ||
|
||
// Disable manual action buttons in UI | ||
// and queue the provided jobs instead | ||
'create_trainings_action' => true, | ||
'training_invitations_collect_action' => true, | ||
'training_invitations_send_action' => true, | ||
]; |
43 changes: 43 additions & 0 deletions
43
database/migrations/2024_07_23_150221_create_expiries_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
use Illuminate\Support\Facades\Schema; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Database\Migrations\Migration; | ||
|
||
return new class extends Migration { | ||
/** | ||
* Run the migrations. | ||
*/ | ||
public function up(): void | ||
{ | ||
Schema::create('expiries', function (Blueprint $table) { | ||
$table->bigIncrements('id'); | ||
$table->string('title'); | ||
$table->string('slug'); | ||
$table->unsignedBigInteger('item_id'); | ||
$table->unsignedBigInteger('meta_id')->nullable(); | ||
$table->string('link'); | ||
$table->string('expiry_job'); | ||
$table->string('category')->nullable(); | ||
$table->string('status')->nullable(); | ||
$table->dateTime('expired_at'); | ||
$table->dateTime('notified_at')->nullable(); | ||
$table->unsignedBigInteger('notified_to')->nullable(); | ||
$table->dateTime('escalated_at')->nullable(); | ||
$table->unsignedBigInteger('escalated_to')->nullable(); | ||
$table->unsignedBigInteger('handled_by')->nullable(); | ||
$table->dateTime('done_at')->nullable(); | ||
|
||
$table->timestamps(); | ||
$table->softDeletes(); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void | ||
{ | ||
Schema::dropIfExists('expiries'); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters