Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Письменов Дмитрий Иванович
/
yourroomads
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0e94b372
authored
Apr 25, 2019
by
Jonathan Reinink
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to new Inertia middleware
1 parent
ad05adf4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
39 deletions
app/Http/Kernel.php
app/Http/Middleware/ConvertRedirects.php
composer.lock
app/Http/Kernel.php
View file @
0e94b37
...
...
@@ -19,7 +19,6 @@ class Kernel extends HttpKernel
\App\Http\Middleware\TrimStrings
::
class
,
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull
::
class
,
\App\Http\Middleware\TrustProxies
::
class
,
\App\Http\Middleware\ConvertRedirects
::
class
,
];
/**
...
...
@@ -29,7 +28,7 @@ class Kernel extends HttpKernel
*/
protected
$middlewareGroups
=
[
'web'
=>
[
\Inertia\
CheckInertiaVersion
::
class
,
\Inertia\
Middleware
::
class
,
\App\Http\Middleware\EncryptCookies
::
class
,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse
::
class
,
\Illuminate\Session\Middleware\StartSession
::
class
,
...
...
app/Http/Middleware/ConvertRedirects.php
deleted
100644 → 0
View file @
ad05adf
<?php
namespace
App\Http\Middleware
;
use
Closure
;
use
Symfony\Component\HttpFoundation\RedirectResponse
;
class
ConvertRedirects
{
public
function
handle
(
$request
,
Closure
$next
)
{
$response
=
$next
(
$request
);
if
(
$response
instanceof
RedirectResponse
)
{
$response
->
setStatusCode
(
303
);
}
return
$response
;
}
}
composer.lock
View file @
0e94b37
...
...
@@ -427,12 +427,12 @@
"source": {
"type": "git",
"url": "https://github.com/inertiajs/inertia-laravel.git",
"reference": "d
22b42840936f377ba77cef563332f7e544b91ef
"
"reference": "d
b9a7b3f50e22103ec9bae9010dc656ad5272b1a
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/inertiajs/inertia-laravel/zipball/d
22b42840936f377ba77cef563332f7e544b91ef
",
"reference": "d
22b42840936f377ba77cef563332f7e544b91ef
",
"url": "https://api.github.com/repos/inertiajs/inertia-laravel/zipball/d
b9a7b3f50e22103ec9bae9010dc656ad5272b1a
",
"reference": "d
b9a7b3f50e22103ec9bae9010dc656ad5272b1a
",
"shasum": ""
},
"require-dev": {
...
...
@@ -442,7 +442,7 @@
"extra": {
"laravel": {
"providers": [
"Inertia\\
Inertia
ServiceProvider"
"Inertia\\ServiceProvider"
]
}
},
...
...
@@ -467,7 +467,7 @@
"inertia",
"laravel"
],
"time": "2019-04-2
2T14:39:16
+00:00"
"time": "2019-04-2
5T15:15:34
+00:00"
},
{
"name": "jakub-onderka/php-console-color",
...
...
@@ -559,16 +559,16 @@
},
{
"name": "laravel/framework",
"version": "v5.8.1
3
",
"version": "v5.8.1
4
",
"source": {
"type": "git",
"url": "https://github.com/laravel/framework.git",
"reference": "
837e3823e2274d22b8e281d093391b5d9c23029a
"
"reference": "
d1ba096bf809c7cbe6cb9624222326d75c92fd74
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/framework/zipball/
837e3823e2274d22b8e281d093391b5d9c23029a
",
"reference": "
837e3823e2274d22b8e281d093391b5d9c23029a
",
"url": "https://api.github.com/repos/laravel/framework/zipball/
d1ba096bf809c7cbe6cb9624222326d75c92fd74
",
"reference": "
d1ba096bf809c7cbe6cb9624222326d75c92fd74
",
"shasum": ""
},
"require": {
...
...
@@ -702,7 +702,7 @@
"framework",
"laravel"
],
"time": "2019-04-
18T15:28:45
+00:00"
"time": "2019-04-
23T13:22:19
+00:00"
},
{
"name": "laravel/tinker",
...
...
@@ -2265,7 +2265,7 @@
},
{
"name": "Gert de Pagter",
"email": "
backendt
ea@gmail.com"
"email": "
BackEndT
ea@gmail.com"
}
],
"description": "Symfony polyfill for ctype functions",
...
...
@@ -4351,16 +4351,16 @@
},
{
"name": "sebastian/environment",
"version": "4.
1.0
",
"version": "4.
2.1
",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/environment.git",
"reference": "
6fda8ce1974b62b14935adc02a9ed38252eca656
"
"reference": "
3095910f0f0fb155ac4021fc51a4a7a39ac04e8a
"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/
6fda8ce1974b62b14935adc02a9ed38252eca656
",
"reference": "
6fda8ce1974b62b14935adc02a9ed38252eca656
",
"url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/
3095910f0f0fb155ac4021fc51a4a7a39ac04e8a
",
"reference": "
3095910f0f0fb155ac4021fc51a4a7a39ac04e8a
",
"shasum": ""
},
"require": {
...
...
@@ -4375,7 +4375,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "4.
1
-dev"
"dev-master": "4.
2
-dev"
}
},
"autoload": {
...
...
@@ -4400,7 +4400,7 @@
"environment",
"hhvm"
],
"time": "2019-0
2-01T05:27:49
+00:00"
"time": "2019-0
4-25T07:55:20
+00:00"
},
{
"name": "sebastian/exporter",
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment