Skip to content

Commit f0401e0

Browse files
authored
Merge pull request #3 from sunsgneayo/patch-1
适配MongoDB模型初始化连接
2 parents 7b82227 + 7eb9302 commit f0401e0

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

src/support/MongoModel.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
/**
3+
* This file is part of webman.
4+
*
5+
* Licensed under The MIT License
6+
* For full copyright and license information, please see the MIT-LICENSE.txt
7+
* Redistributions of files must retain the above copyright notice.
8+
*
9+
* @author walkor<[email protected]>
10+
* @copyright walkor<[email protected]>
11+
* @link http://www.workerman.net/
12+
* @license http://www.opensource.org/licenses/mit-license.php MIT License
13+
*/
14+
15+
namespace support;
16+
17+
use Closure;
18+
use Illuminate\Contracts\Pagination\CursorPaginator;
19+
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
20+
use Illuminate\Contracts\Pagination\Paginator;
21+
use MongoDB\Laravel\Eloquent\Model as BaseModel;
22+
use Illuminate\Database\Query\Builder;
23+
use Illuminate\Database\Query\Expression;
24+
use Illuminate\Database\Query\Grammars\Grammar;
25+
use Illuminate\Database\Query\Processors\Processor;
26+
use Illuminate\Support\Collection;
27+
use Illuminate\Support\LazyCollection;
28+
29+
require_once __DIR__ . '/../Initializer.php';
30+
class MongoModel extends BaseModel
31+
{
32+
33+
}

0 commit comments

Comments
 (0)