Add Subscriber demo

This commit is contained in:
2021-01-14 15:00:07 +03:00
parent cb1f3a6bb5
commit 45a7e8abce
8 changed files with 83 additions and 17 deletions

View File

@@ -0,0 +1,19 @@
<?php
namespace Database\Component\Seeders;
use App\Models\Subscriber;
use Illuminate\Database\Seeder;
class AddAfterMenuUploadSubscriber extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Subscriber::add('sync:postmenu', 'hello:gethello', 10);
}
}