I ask myself a question: when developing an API on Laravel that is being accessed by the SPA web, what is the best way to separate the view for authorization and the personal account?
Collecting all-in-one JS would not like to shine endpoints in my personal account for an unauthorized user.
Therefore, I want, depending on the authorization of the user, to display this or that view: easy with authorization or a full-fledged SPA.
I believe that storing it in public/ as private.php & public.php not a good idea.
Another option: slightly complicate the frontend assembly and scatter these two files into resources/views/ .
What other options do I miss?