Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.

Commit b7d48c5

Browse files
committed
Merge branch 'v2'
2 parents 2b8e435 + d6a5652 commit b7d48c5

File tree

492 files changed

+675
-341
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

492 files changed

+675
-341
lines changed

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
language: php
22

33
php:
4-
- 5.6
54
- 7.0
65
- 7.1
76
- 7.2
87
- 7.3
98

10-
sudo: false
11-
129
env:
1310
matrix:
1411
- COMPOSER_FLAGS="--prefer-lowest"

README.md

Lines changed: 12 additions & 4 deletions

composer.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,26 @@
1111
}
1212
],
1313
"require": {
14-
"php": ">=5.6.4"
14+
"php": "^7.0",
15+
"guzzlehttp/guzzle": "^6.5"
1516
},
1617
"require-dev": {
17-
"phpunit/phpunit": "^5"
18+
"orchestra/testbench": "~3.4.0|~3.6.0|~3.7.0|~3.8.0|^4.0",
19+
"phpunit/phpunit": "^6.0|^7.0|^8.0"
1820
},
1921
"autoload": {
2022
"psr-4": {
21-
"Aschmelyun\\Larametrics\\": "src/"
23+
"Aschmelyun\\Larametrics\\": "src"
2224
}
2325
},
26+
"autoload-dev": {
27+
"psr-4": {
28+
"Aschmelyun\\Larametrics\\Tests\\": "tests"
29+
}
30+
},
31+
"scripts": {
32+
"test": "vendor/bin/phpunit"
33+
},
2434
"extra": {
2535
"laravel": {
2636
"providers": [
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@
158158
*/
159159
'notificationMethods' => [
160160
'email' => env('LARAMETRICS_NOTIFICATION_EMAIL', 'admin@localhost'),
161-
'slack' => env('LARAMETRICS_NOTIFICATION_SLACK_WEBHOOK', '')
161+
'slack' => env('LARAMETRICS_NOTIFICATION_SLACK_WEBHOOK', ''),
162+
'webhook' => env('LARAMETRICS_NOTIFICATION_CUSTOM_WEBHOOK', '')
162163
]
163164

164165
];

src/database/migrations/2018_06_01_000000_create_larametrics_models_table.php renamed to database/migrations/2018_06_01_000000_create_larametrics_models_table.php

File renamed without changes.

src/database/migrations/2018_07_01_000000_create_larametrics_requests_table.php renamed to database/migrations/2018_07_01_000000_create_larametrics_requests_table.php

File renamed without changes.

src/database/migrations/2018_07_28_000000_create_larametrics_logs_table.php renamed to database/migrations/2018_07_28_000000_create_larametrics_logs_table.php

File renamed without changes.

src/database/migrations/2018_08_02_000000_create_larametrics_notifications_table.php renamed to database/migrations/2018_08_02_000000_create_larametrics_notifications_table.php

File renamed without changes.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
3+
use Illuminate\Support\Facades\Schema;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Database\Migrations\Migration;
6+
7+
class AddUserIdColumnToLarametricsModelsTable extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*
12+
* @return void
13+
*/
14+
public function up()
15+
{
16+
Schema::table('larametrics_models', function ($table) {
17+
$table->integer('user_id')
18+
->after('model_id')
19+
->nullable();
20+
});
21+
}
22+
23+
/**
24+
* Reverse the migrations.
25+
*
26+
* @return void
27+
*/
28+
public function down()
29+
{
30+
Schema::table('larametrics_models', function ($table) {
31+
$table->dropColumn('user_id');
32+
});
33+
}
34+
}

0 commit comments

Comments
 (0)