[Vuejs]-How to hide website's Vue.js admin panel code from unauthorized clients

0👍

The way I do is by compiling two differents files using webpack and a logical test whitin the blade file.

So, depending on the user type, the page will load differents files, but I do not mind them staying in the public directory. I put every administrator request inside an administrator middleware.

You can make laravel moving files from public directory and an another one using some sort of control. Exposing your admin files only when an administrator request a page and until the load is done. I know this is possible, I never tested it myself.

Leave a comment