jenssegers/mongodb-sentry

An extension for Laravel-MongoDB that lets you work with Sentry

v1.1.0-beta 2015-03-21 19:22 UTC

This package is auto-updated.

Last update: 2024-10-15 06:39:01 UTC


README

Because Sentry's models extends the original Eloquent model, it could not be used with MongoDB. This package includes models that extends Jenssegers\Mongodb\Model and thus support MongoDB.

Installation

Make sure you have jenssegers\mongodb installed before you continue.

Install using composer:

composer require jenssegers/mongodb-sentry

For instructions on Sentry, check out https://cartalyst.com/manual/sentry/installation/laravel-4

Usage

To use the included MongoDB-enabled models, change the Sentry configuration model sections:

    'groups' => array(

        'model' => 'Jenssegers\Mongodb\Sentry\Group',

    ),

    'users' => array(

        'model' => 'Jenssegers\Mongodb\Sentry\User',

    ),

    'throttling' => array(

        'model' => 'Jenssegers\Mongodb\Sentry\Throttle',

    ),

Or if you have a custom model, make sure it extends the correct model.