Y
Y
yellow_pus2022-04-04 00:00:51
Vue.js
yellow_pus, 2022-04-04 00:00:51

How to migrate from blade to vue?

I have such a simple page on the blade,

<body>
@section('nav')
    @auth("web")
        <div class="topnav">
            <a class="active" href="{{route("logout")}}">Logout</a>
            <a href="{{route("showCategories")}}">Categories</a>
        </div>
    @endauth

    @guest("web")
        <div class="topnav">
            <a class="active" href="{{route("login")}}">Login</a>
            <a href="{{route("registration")}}">Registration</a>
        </div>
    @endguest
@endsection
</body>

Which shows guests everything from the section @guest("web")and to registered users everything from @auth("web")How can I implement the same thing, only on vue?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question