Skip to content

Commit

Permalink
Release v2.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
imjoehaines authored Sep 9, 2020
2 parents 71550c6 + a8776eb commit 66d23a6
Show file tree
Hide file tree
Showing 525 changed files with 7,570 additions and 6,278 deletions.
39 changes: 31 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ matrix:
- php: 7.2
dist: bionic
env: LARAVEL_VERSION=5.8.*
- php: 7.2
dist: bionic
env: LARAVEL_VERSION=6.0
- php: 7.2
dist: bionic
env: LARAVEL_VERSION=7.0
- php: 7.2
dist: bionic
env: LARAVEL_VERSION=6.*
Expand All @@ -92,22 +98,34 @@ matrix:
- php: 7.3
dist: bionic
env: LARAVEL_VERSION=7.*
- php: 7.3
dist: bionic
env: LARAVEL_VERSION=8.*
- php: 7.4
dist: bionic
env: LARAVEL_VERSION=5.8.*
- php: 7.4
dist: bionic
env: LARAVEL_VERSION=6.0
- php: 7.4
dist: bionic
env: LARAVEL_VERSION=7.0
- php: 7.4
dist: bionic
env: LARAVEL_VERSION=6.*
- php: 7.4
dist: bionic
env: LARAVEL_VERSION=7.*
- php: 7.4
dist: bionic
env: LARAVEL_VERSION=8.*
- addons:
apt:
packages:
- docker-ce
- docker-ce
sudo: required
sevices:
- docker
- docker
rvm: 2.4.1
before_install: ruby --version
install: bundle install
Expand All @@ -116,10 +134,10 @@ matrix:
- addons:
apt:
packages:
- docker-ce
- docker-ce
sudo: required
sevices:
- docker
- docker
rvm: 2.4.1
before_install: ruby --version
install: bundle install
Expand All @@ -128,23 +146,28 @@ matrix:
- addons:
apt:
packages:
- docker-ce
- docker-ce
sudo: required
sevices:
- docker
- docker
rvm: 2.4.1
before_install: ruby --version
install: bundle install
script: bundle exec bugsnag-maze-runner -c
env: LARAVEL_FIXTURE=laravel66

cache:
directories:
- $HOME/.composer/cache

before_install:
- travis_retry composer require "laravel/framework:${LARAVEL_VERSION}" --no-update
- echo "memory_limit=4G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini

install:
- if [[ $TRAVIS_PHP_VERSION == 5.5.9 ]]; then travis_retry composer update --no-interaction --prefer-source --prefer-lowest ; fi
- if [[ $TRAVIS_PHP_VERSION != 5.5.9 ]]; then travis_retry composer update --no-interaction --prefer-source ; fi
- if [[ $TRAVIS_PHP_VERSION == 5.5.9 ]]; then travis_retry composer update --no-interaction --prefer-dist --prefer-lowest ; fi
- if [[ $TRAVIS_PHP_VERSION != 5.5.9 ]]; then travis_retry composer update --no-interaction --prefer-dist ; fi
- composer show laravel/framework

script:
- make test
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
Changelog
=========

## 2.20.0 (2020-09-09)

### Enhancements

* Allow installation on Laravel 8 projects
[jwpage](https://github.com/jwpage)
[jdavidbakr](https://github.com/jdavidbakr)
[#405](https://github.com/bugsnag/bugsnag-laravel/pull/405)
[#407](https://github.com/bugsnag/bugsnag-laravel/pull/407)

* Add method documentation to the `Bugsnag` facade
[danieldevsquad](https://github.com/danieldevsquad)
[#373](https://github.com/bugsnag/bugsnag-laravel/pull/373)

## 2.19.0 (2020-05-11)

### Enhancements
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"php": ">=5.5",
"bugsnag/bugsnag": "^3.20",
"bugsnag/bugsnag-psr-logger": "^1.4",
"illuminate/contracts": "^5.0|^6.0|^7.0",
"illuminate/support": "^5.0|^6.0|^7.0",
"illuminate/contracts": "^5.0|^6.0|^7.0|^8.0",
"illuminate/support": "^5.0|^6.0|^7.0|^8.0",
"monolog/monolog": "^1.12|^2.0"
},
"require-dev": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
BUGSNAG_API_KEY=YOUR_API_KEY_HERE

APP_ENV=local
APP_KEY=SomeRandomString
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost
BUGSNAG_API_KEY=your-api-key-here

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
Expand Down
File renamed without changes.
42 changes: 42 additions & 0 deletions example/laravel-5.2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Bugsnag Laravel 5.2 demo

This Laravel application demonstrates how to use Bugsnag with version 5.2 of the Laravel web framework for PHP.

## Setup

Try this out with [your own Bugsnag account](https://app.bugsnag.com/user/new), and you'll be able to see how the errors are reported directly in the dashboard.

To get set up, follow the instructions below. Don't forget to replace the placeholder API token with your own!


1. Clone the repo and `cd` into this directory:
```shell
git clone https://github.com/bugsnag/bugsnag-laravel.git
cd bugsnag-laravel/example/laravel-5.2
```

1. Install dependencies
```shell
composer install
```

1. Copy the `.env.example` file to `.env`
```shell
cp .env.example .env
```

1. Set the `BUGSNAG_API_KEY` in `.env` to your Bugsnag project's API Key
1. Generate Laravel's application key
```shell
php artisan key:generate
```

1. Run the application.
```shell
php artisan serve
```

1. View the example page which will, by default, be served at: http://localhost:8000

For more information, see [our Laravel documentation](https://docs.bugsnag.com/platforms/php/laravel/).
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
70 changes: 70 additions & 0 deletions example/laravel-5.2/app/Http/routes.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<?php

use Bugsnag\Report;
use Bugsnag\BugsnagLaravel\Facades\Bugsnag;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

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

Route::get('crash', function () {
throw new Exception('Crashing exception!');
});

Route::get('notify', function () {
Bugsnag::notifyException(new Exception('A notified exception'));

return 'An exception has been notified. Check your dashboard to view it!';
});

Route::get('metadata', function () {
Bugsnag::registerCallback(function(Report $report) {
$report->setMetaData([
'Route Details' => [
'path' => 'metadata',
'function' => 'Adds a callback to Bugsnag that adds metadata to a notification'
]
]);
});

throw new Exception('Metadata exception!');
});

Route::get('notify-with-metadata', function () {
Bugsnag::notifyException(
new Exception('A notified exception with metadata'),
function(Report $report) {
$report->setMetaData([
'Route Details' => [
'path' => 'notify-with-metadata',
'function' => 'Shows how to send extra data with a manually notified exception!'
]
]);
}
);

return 'An exception has been notified. Check your dashboard to view it!';
});

Route::get('severity', function () {
Bugsnag::notifyException(
new Exception('A notified exception with a severity of "info"'),
function(Report $report) {
$report->setSeverity('info');
}
);

return 'An exception has been notified. Check your dashboard to view it!';
});
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>Laravel</title>

<link href="https://fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Lato:100,700" rel="stylesheet" type="text/css">

<style>
html, body {
Expand Down Expand Up @@ -33,12 +33,36 @@
.title {
font-size: 96px;
}
.links > a {
color: #636b6f;
padding: 0 25px;
font-size: 13px;
font-weight: 700;
letter-spacing: .1rem;
text-decoration: none;
text-transform: uppercase;
}
.m-b-md {
margin-bottom: 30px;
}
</style>
</head>
<body>
<div class="container">
<div class="content">
<div class="title">Laravel 5</div>
<div class="title m-b-md">
Bugsnag Laravel example
</div>

<div class="links">
<a href="/crash">Crash</a>
<a href="/notify">Notify</a>
<a href="/metadata">Crash with added metadata</a>
<a href="/notify-with-metadata">Notify with added metadata</a>
<a href="/severity">Notify with modified severity</a>
</div>
</div>
</div>
</body>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
BUGSNAG_API_KEY=YOUR_API_KEY_HERE

APP_NAME=Laravel
APP_ENV=local
APP_KEY=
Expand All @@ -9,9 +11,9 @@ LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=

BROADCAST_DRIVER=log
CACHE_DRIVER=file
Expand All @@ -30,6 +32,11 @@ MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
/composer.lock
/node_modules
/public/hot
/public/storage
/storage/*.key
/vendor
.env
.env.backup
.phpunit.result.cache
Homestead.json
Homestead.yaml
Expand Down
13 changes: 13 additions & 0 deletions example/laravel-5.8/.styleci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
php:
preset: laravel
disabled:
- unused_use
finder:
not-name:
- index.php
- server.php
js:
finder:
not-name:
- webpack.mix.js
css: true
Loading

0 comments on commit 66d23a6

Please sign in to comment.