Skip to content

Commit

Permalink
Updated for Laravel 9.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebronner committed Feb 14, 2022
1 parent d1788d3 commit a180ff4
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
language: php

php:
- 7.2.5
- 7.3
- 7.4
- 8.0
- 8.1

before_script:
- travis_retry composer self-update
Expand Down
15 changes: 10 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
"sinergi/browser-detector": "^6.1"
},
"require-dev": {
"fzaninotto/faker": "^1.8",
"fakerphp/faker": "^1.8",
"laravel/browser-kit-testing": "^7.0",
"laravel/laravel": "^9.0",
"laravel/ui": "^3.1",
"laravel/ui": "^3.4",
"php-coveralls/php-coveralls": "^2.4",
"phpmd/phpmd": "^2.9",
"phpunit/phpunit": "^9.0",
"sebastian/phpcpd": "^5.0",
"phpunit/phpunit": "^9.5",
"sebastian/phpcpd": "^6.0",
"squizlabs/php_codesniffer": "^3.5",
"symfony/thanks": "^1.2"
},
Expand All @@ -53,5 +53,10 @@
}
},
"minimum-stability": "dev",
"prefer-stable": true
"prefer-stable": true,
"config": {
"allow-plugins": {
"symfony/thanks": true
}
}
}
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@
"private": true,
"scripts": {
"dev": "npm run development",
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch": "npm run development -- --watch",
"watch-poll": "npm run watch -- --watch-poll",
"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",
"development": "mix",
"watch": "mix watch",
"watch-poll": "mix watch -- --watch-options-poll=1000",
"hot": "mix watch --hot",
"prod": "npm run production",
"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"
"production": "mix --production"
},
"devDependencies": {
"cross-env": "^7.0",
"laravel-mix": "^5.0.9",
"vue-template-compiler": "^2.6"
"laravel-mix": "^6.0.6"
}
}
2 changes: 1 addition & 1 deletion public/genealabs-laravel-mixpanel/js/mixpanel.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"/genealabs-laravel-mixpanel/js/mixpanel.js": "/genealabs-laravel-mixpanel/js/mixpanel.js?id=58f2d3b4111a077ef97e"
"/genealabs-laravel-mixpanel/js/mixpanel.js": "/genealabs-laravel-mixpanel/js/mixpanel.js?id=b7cb68481b0003bae92d21814adb8e7a"
}
5 changes: 4 additions & 1 deletion routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

use GeneaLabs\LaravelMixpanel\Http\Controllers\StripeWebhooksController;

Route::post('genealabs/laravel-mixpanel/stripe', StripeWebhooksController::class .'@postTransaction');
Route::post(
'genealabs/laravel-mixpanel/stripe',
StripeWebhooksController::class . '@postTransaction',
);
7 changes: 5 additions & 2 deletions tests/CreatesApplication.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?php namespace GeneaLabs\LaravelMixpanel\Tests;
<?php

namespace GeneaLabs\LaravelMixpanel\Tests;

use GeneaLabs\LaravelMixpanel\Providers\Service;
use Illuminate\Contracts\Console\Kernel;
use Illuminate\Foundation\Application;
use Laravel\Ui\UiServiceProvider;

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

return $app;
}
Expand Down
2 changes: 2 additions & 0 deletions tests/Fixtures/routes/web.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

use Illuminate\Support\Facades\Auth;

/*
|--------------------------------------------------------------------------
| Web Routes
Expand Down
2 changes: 1 addition & 1 deletion webpack.mix.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let mix = require('laravel-mix');
const mix = require("laravel-mix");

/*
|--------------------------------------------------------------------------
Expand Down

0 comments on commit a180ff4

Please sign in to comment.