markustripp/mongo 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

markustripp/mongo

最新稳定版本:v1.0.2

Composer 安装命令:

composer require markustripp/mongo

包简介

MongoDB driver, auth, passport for Laravel

README 文档

README

See Laravel 5.5 Package Development

Quick Start Guide

  • Create a Laravel 5.5 project: composer create-project laravel/laravel myproject dev-develop
  • cd myproject
  • Add dependency: composer require markustripp/mongo
  • Copy configuration: php artisan vendor:publish

Now you are ready to use the Mongo Facade, e.g. open routes/web.php:

<?php

Route::get('mongo', function(Request $request) {
    $collection = Mongo::get()->mydatabase->mycollection;
    return $collection->find()->toArray();
});

Route::get('/', function () {
    return view('welcome');
});

Add a document to mycollection in mydatabase and open the browser at http://myproject.dev/mongo

To override the default MongoDB connection configuration add the following parameters to your .env file. Find a detailed description on the MongoDB Driver Manager Page. Use JSON notation within single quotes ' for options.

MONGO_URI=mongodb://127.0.0.1:27017
MONGO_URI_OPTIONS='{"appname": "app", "replicaSet": "repl"}'
MONGO_DRIVER_OPTIONS=

统计信息

  • 总下载量: 22.91k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 2
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-08-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固