From 3d386178bf0bbb2cafa8d0ce2389937d0e504e8d Mon Sep 17 00:00:00 2001
From: hugol
Date: Sun, 17 Nov 2024 12:01:26 +0100
Subject: [PATCH] Mise en place de Larabug
---
composer.json | 1 +
composer.lock | 71 +++++++++++++++++++++++++++++++++++++++++++++-
config/logging.php | 6 +++-
config/twitter.php | 4 +--
4 files changed, 77 insertions(+), 5 deletions(-)
diff --git a/composer.json b/composer.json
index fe1b50d..24edd96 100644
--- a/composer.json
+++ b/composer.json
@@ -10,6 +10,7 @@
"foroco/php-browser-detection": "^2.8",
"guzzlehttp/oauth-subscriber": "^0.6.0",
"kamona/fortify-bootstrap": "^1.0",
+ "larabug/larabug": "^3.1",
"laravel/framework": "^11.27.2",
"laravel/nova": "*",
"laravel/tinker": "^2.10",
diff --git a/composer.lock b/composer.lock
index 5640486..ff2b594 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "9b57261ced0c6b75956af96d12fc8913",
+ "content-hash": "5e9aafb897b7898c9c493bb7db309e88",
"packages": [
{
"name": "artesaos/seotools",
@@ -1684,6 +1684,75 @@
},
"time": "2022-03-04T11:41:48+00:00"
},
+ {
+ "name": "larabug/larabug",
+ "version": "3.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/LaraBug/LaraBug.git",
+ "reference": "ab1443eb30a72648864642f1211108c23efb0f7a"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/LaraBug/LaraBug/zipball/ab1443eb30a72648864642f1211108c23efb0f7a",
+ "reference": "ab1443eb30a72648864642f1211108c23efb0f7a",
+ "shasum": ""
+ },
+ "require": {
+ "guzzlehttp/guzzle": "^6.0.2 || ^7.0",
+ "illuminate/support": "^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0",
+ "nesbot/carbon": "^2.62.1 || ^3.0",
+ "php": "^7.4 || ^8.0"
+ },
+ "require-dev": {
+ "friendsofphp/php-cs-fixer": "^3.4",
+ "mockery/mockery": "^1.3.3 || ^1.4.2",
+ "orchestra/testbench": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0",
+ "phpunit/phpunit": "^8.5.23 || ^9.5.12 || ^10.0.9"
+ },
+ "type": "library",
+ "extra": {
+ "laravel": {
+ "providers": [
+ "LaraBug\\ServiceProvider"
+ ]
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "LaraBug\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Dennis Smink",
+ "email": "dennissmink@gmail.com",
+ "homepage": "http://www.dennissmink.nl",
+ "role": "Owner"
+ }
+ ],
+ "description": "Laravel 6.x/7.x/8.x/9.x bug notifier",
+ "keywords": [
+ "error",
+ "laravel",
+ "log"
+ ],
+ "support": {
+ "issues": "https://github.com/LaraBug/LaraBug/issues",
+ "source": "https://github.com/LaraBug/LaraBug/tree/3.1"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/cannonb4ll",
+ "type": "github"
+ }
+ ],
+ "time": "2024-04-10T08:41:38+00:00"
+ },
{
"name": "laravel/fortify",
"version": "v1.24.5",
diff --git a/config/logging.php b/config/logging.php
index d526b64..96ac0f4 100644
--- a/config/logging.php
+++ b/config/logging.php
@@ -54,10 +54,14 @@ return [
'stack' => [
'driver' => 'stack',
- 'channels' => explode(',', env('LOG_STACK', 'single')),
+ 'channels' => ['single', 'larabug'],
'ignore_exceptions' => false,
],
+ 'larabug' => [
+ 'driver' => 'larabug',
+ ],
+
'single' => [
'driver' => 'single',
'path' => storage_path('logs/laravel.log'),
diff --git a/config/twitter.php b/config/twitter.php
index 055099f..2238bbe 100644
--- a/config/twitter.php
+++ b/config/twitter.php
@@ -98,9 +98,7 @@ return [
'word_tag' => [
"invit",
"mention",
- "mentionnez une",
- "mentionnez un",
- "mentionnez des",
+ "mentionne",
"tag",
"#tag",
"taguer",