src/Traits/Queue/QueueTrait.php
public function getDefaultQueue(): ?Queue
    {
        // By default, the Queue Facade does not return the
        // any actual database connection, but rather an
        // instance of \Illuminate\Queue\QueueManager.
        // Therefore, we make sure only to obtain its
        // "connection", to make sure that its only the connection
        // instance that we obtain.
        $manager = QueueFacade::getFacadeRoot();
        if (isset($manager)) {
            return $manager->connection();
        }
        return $manager;
    }
public function getDefaultQueue(): ?Queue
    {
        // By default, the Queue Facade does not return the
        // any actual database connection, but rather an
        // instance of \Illuminate\Queue\QueueManager.
        // Therefore, we make sure only to obtain its
        // "connection", to make sure that its only the connection
        // instance that we obtain.
        $manager = QueueFacade::getFacadeRoot();
        if (isset($manager)) {
            return $manager->connection();
        }
        return $manager;
    }
public function getDefaultQueue ( ) : ? Queue { // By default, the Queue Facade does not return the // any actual database connection, but rather an // instance of \Illuminate\Queue\QueueManager. // Therefore, we make sure only to obtain its // "connection", to make sure that its only the connection // instance that we obtain. $ manager = QueueFacade :: getFacadeRoot ( ) ; if ( isset ( $ manager ) ) { return $ manager -> connection ( ) ; } return $ manager ; }
Get a default queue value, if any is available

@return Queue|null A default queue value or Null if no default value is available
Get a default queue value if any is available