Display Username after Login

In this tutorial, I will teach you, how to create display user name after login. It  means when user  login is  success. then we will show name and email on dashboard.


Step 1 : Open your dashboard page (successlogin.blade.php) and enter these codes to show user name and email on dashboard page.

<div class="alert alert-success success-block" style="text-align: center;">


    Welcome : {{ Auth::user()->name }} <br> 
    <p>Your email is : {{ Auth::user()->email }} </p>



Result :

Source Code:

Small Laravel Project

In this project. We are providing you, how to create small project in Laravel....

Source Code