Service Worker Issue on Laravel

Is there any way I can setup a Service Worker on Laravel successfully? I have tried a couple of ideas but no working. Fine, the browser can see the Service Worker, but won’t allow the user to install the app on phone. Any advice?