Skip to content

Commit 576fba4

Browse files
authored
[1.x] Add $request->inertia() IDE helper (#625)
* Add `$request->inertia()` IDE helper * Re-export IDE helper file
1 parent de6b005 commit 576fba4

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.gitattributes

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
/.gitignore export-ignore
88
/.github export-ignore
99
/.php-cs-fixer.dist.php export-ignore
10-
/_ide_helpers.php export-ignore
1110
/phpunit.xml.dist export-ignore
1211
/tests export-ignore
1312
/CHANGELOG.md export-ignore

_ide_helpers.php

+27
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@ class TestResponse
3333
namespace Illuminate\Support\Facades {
3434

3535
/**
36+
* @see \Inertia\ServiceProvider
37+
*
38+
* @method static bool inertia()
39+
*/
40+
class Request
41+
{
42+
//
43+
}
44+
45+
/**
46+
* @see \Inertia\ServiceProvider
47+
*
3648
* @method static self inertia(string $uri, string $component, array $props = [])
3749
*/
3850
class Route
@@ -41,9 +53,24 @@ class Route
4153
}
4254
}
4355

56+
namespace Illuminate\Http {
57+
58+
/**
59+
* @see \Inertia\ServiceProvider
60+
*
61+
* @method bool inertia()
62+
*/
63+
class Request
64+
{
65+
//
66+
}
67+
}
68+
4469
namespace Illuminate\Routing {
4570

4671
/**
72+
* @see \Inertia\ServiceProvider
73+
*
4774
* @method self inertia(string $uri, string $component, array $props = [])
4875
*/
4976
class Router

0 commit comments

Comments
 (0)