Skip to content

Commit c1924d6

Browse files
authored
Remove registering Inertia middleware from readme
1 parent 12562c9 commit c1924d6

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

readme.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,6 @@ If you'd like to use a different root view, you can change it using `Inertia::se
4343
Inertia\Inertia::setRootView('name');
4444
~~~
4545

46-
## Add Inertia middleware
47-
48-
Next, add the `Inertia\Middleware` middleware to your `web` middleware group, found in the `/app/Http/Kernel.php` file. This middleware monitors for asset changes, and also fixes an edge case with 302 redirects. Be sure to include this middleware *after* any session related middleware.
49-
50-
~~~php
51-
protected $middlewareGroups = [
52-
'web' => [
53-
// ...
54-
\Inertia\Middleware::class,
55-
]
56-
];
57-
~~~
58-
5946
## Making Inertia responses
6047

6148
To make an Inertia response, use `Inertia::render()`. This function takes two arguments, the component name, and the component data (props).

0 commit comments

Comments
 (0)