Answers for "laravel get user name by id in blade"

PHP
1

laravel 6 get user id

$id = \Auth::id();
Posted by: Guest on December-22-2020
0

how to print user name in by passing created by id

public function index()
{

    $users = User::all();

    $products= Product::all();

    return view('products.index',compact('products', 'users'));     
}
Posted by: Guest on December-15-2020

Code answers related to "laravel get user name by id in blade"

Browse Popular Code Answers by Language