Laravel 5.5 get current login user details using Auth
In this post we will give you information about Laravel 5.5 get current login user details using Auth. Hear we will give you detail about Laravel 5.5 get current login user details using AuthAnd how to use it also give you demo for it if it is necessary.
Today, we are share with youu how to get current login user details in laravel. we are always need to sometime current login user details like id, name, email, profile picture etc..
So, here we are share with you how to get in to way. you also get current login user details in controller and blade in same way.
PHP Laravel 5: Class 'MongoDBDriverManager' not found
In this post we will give you information about PHP Laravel 5: Class 'MongoDBDriverManager' not found. Hear we will give you detail about PHP Laravel 5: Class 'MongoDBDriverManager' not foundAnd how to use it also give you demo for it if it is necessary.
In this post, you will find the solution for issue :.
FatalThrowableError in Client.php line 81: Class 'MongoDBDriverManager' not found
When you are going to connect MongoDB database with any PHP application then you can face this issue if you don't have PHP MongoDB driver.
So first you need to run following command to install Mongodb PHP extension in Ubuntu :
sudo apt-get install php-mongodb
Now restart the server :
sudo service apache2 restart
Try this..
Hope this code and post will helped you for implement PHP Laravel 5: Class 'MongoDBDriverManager' not found. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs
[ADDCODE]
Using Helper:
$user = auth()->user();
print($user->id);
print($user->name);
print($user->email);
Using Facade:
$user = Auth::user();
print($user->id);
print($user->name);
print($user->email);
We are hope this is helpfull to you…
Hope this code and post will helped you for implement Laravel 5.5 get current login user details using Auth. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs