Created
September 15, 2017 17:17
-
-
Save lpj145/e3cf5d5b44e7393806e1d589c8c0a956 to your computer and use it in GitHub Desktop.
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
<?php | |
require 'vendor/autoload.php'; | |
use Mongolid\Manager; | |
use Mongolid\Connection\Connection; | |
$manager = new Manager(new Connection('mongodb://localhost:27017')); | |
class Post extends Mongolid\ActiveRecord { | |
protected $collection = 'posts'; | |
} | |
$post = new \App\Posts(); | |
$post::all(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment