<commit_before>Bugsnag Notifier for Laravel
============================

The Bugsnag Notifier for Laravel gives you instant notification of errors and
exceptions in your Laravel PHP applications.

[Bugsnag](https://bugsnag.com) captures errors in real-time from your web, 
mobile and desktop applications, helping you to understand and resolve them 
as fast as possible. [Create a free account](https://bugsnag.com) to start 
capturing errors from your applications.

Check out this excellent [Laracasts screencast](https://laracasts.com/lessons/better-error-tracking-with-bugsnag) for a quick overview of how to use Bugsnag with your Laravel apps.


How to Install
--------------

### Using [Composer](http://getcomposer.org/) (Recommended)

1.  Install the `bugsnag/bugsnag-laravel` package

    ```shell
    $ composer require "bugsnag/bugsnag-laravel:1.*"
    ```

2.  Update `app/config/app.php` to activate Bugsnag

    ```php
    # Add `BugsnagLaravelServiceProvider` to the `providers` array
    'providers' => array(
        # ...
        'Bugsnag\BugsnagLaravel\BugsnagLaravelServiceProvider',
    )

    # Add the `BugsnagFacade` to the `aliases` array
    'aliases' => array(
        # ...
        'Bugsnag' => 'Bugsnag\BugsnagLaravel\BugsnagFacade',
    )
    ```

### Using [Laravel Package Installer](https://github.com/rtablada/package-installer)

1.  Install the bugsnag/bugsnag-laravel package

    ```shell
    $ php artisan package:install bugsnag/bugsnag-laravel
    ```


Configuration
-------------

1.  Generate a template Bugsnag config file

    ```shell
    $ php artisan config:publish bugsnag/bugsnag-laravel
    ```<commit_msg>Simplify installation instructions since everyone uses composer<commit_after>Bugsnag Notifier for Laravel
============================

The Bugsnag Notifier for Laravel gives you instant notification of errors and
exceptions in your Laravel PHP applications.

[Bugsnag](https://bugsnag.com) captures errors in real-time from your web, 
mobile and desktop applications, helping you to understand and resolve them 
as fast as possible. [Create a free account](https://bugsnag.com) to start 
capturing errors from your applications.

Check out this excellent [Laracasts screencast](https://laracasts.com/lessons/better-error-tracking-with-bugsnag) for a quick overview of how to use Bugsnag with your Laravel apps.


How to Install
--------------

1.  Install the `bugsnag/bugsnag-laravel` package

    ```shell
    $ composer require "bugsnag/bugsnag-laravel:1.*"
    ```

2.  Update `app/config/app.php` to activate Bugsnag

    ```php
    # Add `BugsnagLaravelServiceProvider` to the `providers` array
    'providers' => array(
        # ...
        'Bugsnag\BugsnagLaravel\BugsnagLaravelServiceProvider',
    )

    # Add the `BugsnagFacade` to the `aliases` array
    'aliases' => array(
        # ...
        'Bugsnag' => 'Bugsnag\BugsnagLaravel\BugsnagFacade',
    )
    ```

If you are using the [Laravel Package Installer](https://github.com/rtablada/package-installer) you can instead run `php artisan package:install bugsnag/bugsnag-laravel`.


Configuration
-------------

1.  Generate a template Bugsnag config file

    ```shell
    $ php artisan config:publish bugsnag/bugsnag-laravel
    ```
{'fraction_non_alphanumeric': 0.12875536480686695, 'fraction_numerical': 0.0027590435315757206, 'mean_word_length': 3.4576502732240435, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3242593', 'n_tokens_mistral': 1039, 'n_tokens_neox': 973, 'n_words': 293}