mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
add Nexus::dispatchQueueJob()
This commit is contained in:
@@ -4,6 +4,7 @@ namespace Nexus\Database;
|
||||
|
||||
use App\Models\OauthClient;
|
||||
use App\Models\PersonalAccessToken;
|
||||
use Illuminate\Container\Container;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Capsule\Manager as Capsule;
|
||||
use Illuminate\Database\Query\Expression;
|
||||
@@ -257,7 +258,7 @@ class NexusDB
|
||||
|
||||
public static function bootEloquent(array $config)
|
||||
{
|
||||
$capsule = new Capsule;
|
||||
$capsule = new Capsule(Container::getInstance());
|
||||
$connectionName = self::ELOQUENT_CONNECTION_NAME;
|
||||
$capsule->addConnection($config, $connectionName);
|
||||
$capsule->setAsGlobal();
|
||||
|
||||
Reference in New Issue
Block a user