larasande
8
16
Tips

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

Posted 2 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.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.