Get user id laravel blade

2020-04-01 02:29:36 Sunil Laravel

Whenever it is required to get user id of loggedin user in Laravel. Use Auth facade, Auth facade is available every where if auth module is enabled in Laravel.

In laravel balade use below code to get user id laravel blade

Id of logged in User is {{\Auth::user()->id}}

This post is submitted by one of our members. You may submit a new post here.

Related Tricks