celsonery /
db-sync
| 1 | <?php |
||
| 2 | |||
| 3 | namespace App\Http\Middleware; |
||
| 4 | |||
| 5 | use Illuminate\Http\Request; |
||
| 6 | use Inertia\Middleware; |
||
| 7 | |||
| 8 | class HandleInertiaRequests extends Middleware |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The root template that is loaded on the first page visit. |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $rootView = 'app'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Determine the current asset version. |
||
| 19 | */ |
||
| 20 | public function version(Request $request): string|null |
||
| 21 | { |
||
| 22 | return parent::version($request); |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Define the props that are shared by default. |
||
| 27 | * |
||
| 28 | * @return array<string, mixed> |
||
| 29 | */ |
||
| 30 | public function share(Request $request): array |
||
| 31 | { |
||
| 32 | return [ |
||
| 33 | ...parent::share($request), |
||
| 34 | 'auth' => [ |
||
| 35 | 'user' => $request->user(), |
||
|
0 ignored issues
–
show
|
|||
| 36 | ], |
||
| 37 | ]; |
||
| 38 | } |
||
| 39 | } |
||
| 40 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.