Skip to content

Commit 79db4d1

Browse files
Merge branch 'rokde/master'
2 parents 758e024 + 278dfa4 commit 79db4d1

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
}
1212
],
1313
"require": {
14-
"laravel/framework": "^5.8|^6.0",
15-
"inertiajs/inertia-laravel": "^0.1"
14+
"laravel/ui": "^2.0",
15+
"inertiajs/inertia-laravel": "^0.2"
1616
},
1717
"require-dev": {
1818
"orchestra/testbench": "^3.8"

src/InertiaJsPreset.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@
44

55
use Illuminate\Container\Container;
66
use Illuminate\Filesystem\Filesystem;
7-
use Illuminate\Foundation\Console\Presets\Preset;
8-
use Illuminate\Support\Arr;
9-
use Illuminate\Support\Facades\Artisan;
107
use Illuminate\Support\Str;
11-
use Symfony\Component\Process\Process;
8+
use Laravel\Ui\Presets\Preset;
129

1310
class InertiaJsPreset extends Preset
1411
{
@@ -40,7 +37,7 @@ protected static function updatePackageArray(array $packages)
4037
protected static function updateComposerArray(array $packages)
4138
{
4239
return array_merge([
43-
'inertiajs/inertia-laravel' => '^0.1',
40+
'inertiajs/inertia-laravel' => '^0.2',
4441
], $packages);
4542
}
4643

@@ -97,8 +94,7 @@ protected static function updateComposer($dev = true)
9794
$packages = json_decode(file_get_contents(base_path('composer.json')), true);
9895

9996
$packages[$configurationKey] = static::updateComposerArray(
100-
array_key_exists($configurationKey, $packages) ? $packages[$configurationKey] : [],
101-
$configurationKey
97+
array_key_exists($configurationKey, $packages) ? $packages[$configurationKey] : []
10298
);
10399

104100
ksort($packages[$configurationKey]);

src/InertiaJsPresetServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
namespace LaravelFrontendPresets\InertiaJsPreset;
44

5-
use Illuminate\Foundation\Console\PresetCommand;
65
use Illuminate\Support\ServiceProvider;
6+
use Laravel\Ui\UiCommand;
77

88
class InertiaJsPresetServiceProvider extends ServiceProvider
99
{
1010
public function boot()
1111
{
12-
PresetCommand::macro('inertiajs', function ($command) {
12+
UiCommand::macro('inertiajs', function ($command) {
1313
InertiaJsPreset::install();
1414

1515
$command->info('Inertia.js scaffolding installed successfully.');

0 commit comments

Comments
 (0)