You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to preload the TailwindCSS asset, make sure to add the `AddLinkHeaderForPreloadedAssets` middleware to your `web` route group, such as:
131
+
**For Laravel 10:**
132
+
133
+
If you want to preload the TailwindCSS asset on Laravel 10, add the `AddLinkHeaderForPreloadedAssets` middleware to your `web` route group in the `app/Http/Kernel.php`:
132
134
133
135
```php
134
136
<?php
@@ -155,6 +157,20 @@ class Kernel extends HttpKernel
155
157
}
156
158
```
157
159
160
+
**For Laravel 11:**
161
+
162
+
If you want to preload the TailwindCSS asset on Laravel 11, add the `AddLinkHeaderForPreloadedAssets` middleware to your `web` route group in the `bootstrap/app.php`:
0 commit comments