larasande
158
16
Tips

How to pull user-specific data from database after user login.

Posted 4 months ago by larasande

So I'm trying to have the dashboard page after the user logs in to display user-specific information about them. Like for instance, I would like the page to say "Hi [name of user as displayed in the database]". Any tips about how I should go about this?

This is how my blade file looks:

@extends('layouts.auth')

@section('content')
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card">
                <div class="card-header">Dashboard</div>

          

                <div class="card-body">
                    Hi volunteer organisation. Welcome to your dashboard.

                    <p>Click here to view a list of volunteers who are interested in your cause.</p>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.