PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, February 19, 2022

[FIXED] LARAVEL 5 :: Display 'username' on homepage?

 February 19, 2022     authentication, laravel-5, register-globals     No comments   

Issue

So the new version of Laravel has a login and register system already built in and so I've changed some fields in the register page and now want the 'username' to be displayed instead of the 'name' on the homepage after login. Does anyone have a clue where this is attributed? Have been searching endlessly for this. Thanks.


Solution

The file you are looking for, is the app view file. This file defines a sample basic template for your website.
It is located here: resources/views/app.blade.php
In your case, you need to change {{ Auth::user()->name }} to {{ Auth::user()->username }}



Answered By - Jad Joubran
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing