Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.x] Inertia: Automatically publish & register Inertia Middleware #327

Merged
merged 17 commits into from
Oct 15, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Mix: Fix manifest path & enable versioning
Also reverts the Inertia\Inertia import, as it was the only 'change' in the file, and will actually cause issues on v2 if the changes get merged into master
  • Loading branch information
claudiodekker committed Oct 9, 2020
commit 742ed60a4b4d660bfdf52aae3fc47e8f4bf97ec9
1 change: 1 addition & 0 deletions src/JetstreamServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Illuminate\Support\Facades\Route;
use Illuminate\Support\ServiceProvider;
use Illuminate\View\Compilers\BladeCompiler;
use Inertia\Inertia;
use Laravel\Fortify\Fortify;
use Laravel\Jetstream\Http\Livewire\ApiTokenManager;
use Laravel\Jetstream\Http\Livewire\CreateTeamForm;
Expand Down
2 changes: 1 addition & 1 deletion stubs/app/Providers/InertiaServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected function configureVersioning()

// Alternatively, when we are running in a regular (non-serverless) environment
// we'll attempt to use the Laravel Mix asset manifest to generate our hash.
if (file_exists($manifest = public_path('js/mix-manifest.json'))) {
if (file_exists($manifest = public_path('mix-manifest.json'))) {
return md5_file($manifest);
}

Expand Down
3 changes: 2 additions & 1 deletion stubs/webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ mix.js('resources/js/app.js', 'public/js')
.postCss('resources/css/app.css', 'public/css', [
require('postcss-import'),
require('tailwindcss'),
]);
])
.version();