Skip to content

Commit

Permalink
Update middleware.stub
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell authored Nov 17, 2023
1 parent 2a1e190 commit 12e7937
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions stubs/middleware.stub
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class {{ class }} extends Middleware
* The root template that's loaded on the first page visit.
*
* @see https://inertiajs.com/server-side-setup#root-template
*
* @var string
*/
protected $rootView = 'app';
Expand All @@ -19,6 +20,7 @@ class {{ class }} extends Middleware
* Determines the current asset version.
*
* @see https://inertiajs.com/asset-versioning
*
* @param \Illuminate\Http\Request $request
* @return string|null
*/
Expand All @@ -28,11 +30,12 @@ class {{ class }} extends Middleware
}

/**
* Defines the props that are shared by default.
* Define the props that are shared by default.
*
* @see https://inertiajs.com/shared-data
*
* @param \Illuminate\Http\Request $request
* @return array
* @return array<string, mixed>
*/
public function share(Request $request): array
{
Expand Down

0 comments on commit 12e7937

Please sign in to comment.