Web Prepration

Web Concept Tutorials

Laravel

If  do you want to get logged in user information in laravel, Laravel auth function provide login user information you need to call Auth::User() function which returns all the details of users and also want to check user login or not then use laravel Auth::check function which return true or false.



 How to create a record in Laravel using eloquent ?

To create a new record in the database using Laravel Eloquent, simply create a new model instance, set attributes on the model, then call the save method:  example code give below.

Using save function you can simple insert data in database with all details which passed in request parameters.

13 comments on How to get Logged in user info in Laravel ?

  • CarmenSmall

    I have checked your page and i’ve found some duplicate content, that’s why
    you don’t rank high in google’s search results, but there is a tool that can help you to create 100% unique articles, search for; Boorfe’s tips unlimited content

Write a comment

Your email address will not be published.