Vue application. How to skip authentication to show certain components?
P粉658954914
P粉658954914 2024-03-27 13:12:42
0
1
504

I am using vue and laravel application. I need to display a component without the user having to log in. Currently, to view components (with security instructions) users must be logged in. But now the component is required externally, which means no login is required to view that particular page. How to achieve this in vue laravel application?

P粉658954914
P粉658954914

reply all(1)
P粉413704245

If your Vue application is protected by "auth" middleware, you will not be able to access it before logging in. Use web middleware where Vue components are required. But to be able to get data through Vue components, you still need token protection like Sanctum.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template