Skip to content

Commit a180ff4

Browse files
committed
Updated for Laravel 9.
1 parent d1788d3 commit a180ff4

File tree

9 files changed

+32
-20
lines changed

9 files changed

+32
-20
lines changed

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
language: php
22

33
php:
4-
- 7.2.5
5-
- 7.3
64
- 7.4
5+
- 8.0
6+
- 8.1
77

88
before_script:
99
- travis_retry composer self-update

composer.json

+10-5
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@
2626
"sinergi/browser-detector": "^6.1"
2727
},
2828
"require-dev": {
29-
"fzaninotto/faker": "^1.8",
29+
"fakerphp/faker": "^1.8",
3030
"laravel/browser-kit-testing": "^7.0",
3131
"laravel/laravel": "^9.0",
32-
"laravel/ui": "^3.1",
32+
"laravel/ui": "^3.4",
3333
"php-coveralls/php-coveralls": "^2.4",
3434
"phpmd/phpmd": "^2.9",
35-
"phpunit/phpunit": "^9.0",
36-
"sebastian/phpcpd": "^5.0",
35+
"phpunit/phpunit": "^9.5",
36+
"sebastian/phpcpd": "^6.0",
3737
"squizlabs/php_codesniffer": "^3.5",
3838
"symfony/thanks": "^1.2"
3939
},
@@ -53,5 +53,10 @@
5353
}
5454
},
5555
"minimum-stability": "dev",
56-
"prefer-stable": true
56+
"prefer-stable": true,
57+
"config": {
58+
"allow-plugins": {
59+
"symfony/thanks": true
60+
}
61+
}
5762
}

package.json

+6-7
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@
22
"private": true,
33
"scripts": {
44
"dev": "npm run development",
5-
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
6-
"watch": "npm run development -- --watch",
7-
"watch-poll": "npm run watch -- --watch-poll",
8-
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --disable-host-check --config=node_modules/laravel-mix/setup/webpack.config.js",
5+
"development": "mix",
6+
"watch": "mix watch",
7+
"watch-poll": "mix watch -- --watch-options-poll=1000",
8+
"hot": "mix watch --hot",
99
"prod": "npm run production",
10-
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
10+
"production": "mix --production"
1111
},
1212
"devDependencies": {
1313
"cross-env": "^7.0",
14-
"laravel-mix": "^5.0.9",
15-
"vue-template-compiler": "^2.6"
14+
"laravel-mix": "^6.0.6"
1615
}
1716
}

public/genealabs-laravel-mixpanel/js/mixpanel.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/mix-manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"/genealabs-laravel-mixpanel/js/mixpanel.js": "/genealabs-laravel-mixpanel/js/mixpanel.js?id=58f2d3b4111a077ef97e"
2+
"/genealabs-laravel-mixpanel/js/mixpanel.js": "/genealabs-laravel-mixpanel/js/mixpanel.js?id=b7cb68481b0003bae92d21814adb8e7a"
33
}

routes/api.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22

33
use GeneaLabs\LaravelMixpanel\Http\Controllers\StripeWebhooksController;
44

5-
Route::post('genealabs/laravel-mixpanel/stripe', StripeWebhooksController::class .'@postTransaction');
5+
Route::post(
6+
'genealabs/laravel-mixpanel/stripe',
7+
StripeWebhooksController::class . '@postTransaction',
8+
);

tests/CreatesApplication.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
<?php namespace GeneaLabs\LaravelMixpanel\Tests;
1+
<?php
2+
3+
namespace GeneaLabs\LaravelMixpanel\Tests;
24

35
use GeneaLabs\LaravelMixpanel\Providers\Service;
46
use Illuminate\Contracts\Console\Kernel;
5-
use Illuminate\Foundation\Application;
7+
use Laravel\Ui\UiServiceProvider;
68

79
trait CreatesApplication
810
{
@@ -21,6 +23,7 @@ public function createApplication()
2123
$app = require __DIR__ . '/../vendor/laravel/laravel/bootstrap/app.php';
2224
$app->make(Kernel::class)->bootstrap();
2325
$app->register(Service::class);
26+
$app->register(UiServiceProvider::class);
2427

2528
return $app;
2629
}

tests/Fixtures/routes/web.php

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
use Illuminate\Support\Facades\Auth;
4+
35
/*
46
|--------------------------------------------------------------------------
57
| Web Routes

webpack.mix.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
let mix = require('laravel-mix');
1+
const mix = require("laravel-mix");
22

33
/*
44
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)