On Authentication

Laraship QuestionsCategory: TechnicalOn Authentication
tech asked 4 years ago
Hello. I'd like to show to a user a different partials of a view or different information (let's say I want to show the price only to authenticated users) depending on whether the user is authenticated or not. Within a blade view is it possible to use the following (from https://laravel.com/docs/7.x/authentication)
if (Auth::check()) {
    // The user is logged in...
or is there another way in Laraship? Thanks in advance
1 Answers
laraship Staff answered 4 years ago
Hello, Yes its possible to use all laravel functions and in the blade file you can use @auth directive