فهرست منبع

Merge pull request #4287 from hestiacp/feature/4286-livewire-laravel

Include livewire in laravel templats
Jaap Marcus 2 سال پیش
والد
کامیت
cabea6a621
2فایلهای تغییر یافته به همراه10 افزوده شده و 0 حذف شده
  1. 5 0
      install/deb/templates/web/nginx/php-fpm/laravel.stpl
  2. 5 0
      install/deb/templates/web/nginx/php-fpm/laravel.tpl

+ 5 - 0
install/deb/templates/web/nginx/php-fpm/laravel.stpl

@@ -48,6 +48,11 @@ server {
 			fastcgi_hide_header "Set-Cookie";
 		}
 
+		location = /livewire/livewire.js {
+				expires off;
+				try_files $uri $uri/ /index.php?$query_string;
+		}
+
 		location ~ [^/]\.php(/|$) {
 			try_files $uri =404;
 

+ 5 - 0
install/deb/templates/web/nginx/php-fpm/laravel.tpl

@@ -39,6 +39,11 @@ server {
 			fastcgi_hide_header "Set-Cookie";
 		}
 
+		location = /livewire/livewire.js {
+				expires off;
+				try_files $uri $uri/ /index.php?$query_string;
+		}
+
 		location ~ [^/]\.php(/|$) {
 			try_files $uri =404;