3 Different Ways To Get Authenticated User In Laravel

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024
  • Here, we will be looking at 3 different ways to get authenticated users in Laravel.
    === Important Links ===
    Fonts, extensions I use, and Support Laratips links:
    bit.ly/m/laratips
    === Offer ===
    GET ONE MONTH OF FREE CLOUDWAYS HOSTING
    Get up to Free Hosting by using code "LARATIPS" and you get $15 as credit which can last almost a month using this link: bit.ly/3TAm5Ee
    === Support ===
    If you want me to continue making this kind of video for free on RUclips, then you can support the channel
    eSewa ID: 9843632084
    Wise Link: bit.ly/3dnBRmX
    Wise email: ashish.dhamala2015@gmail.com
    === Video Related Links ===
    === Other Videos ===
    What's New In Laravel 9
    • Laravel 9 Is Released ...
    New In Laravel Playlist
    • New In Laravel
    Laravel Package Development Playlist
    • Laravel Package Develo...
    Password Validation In Laravel with at least one Letters, Numbers, Upper and Lowercase or Symbols:
    • Password Validation In...
    Multiple Apis With ForwardsCalls Trait And Code Refactoring Tip - Laravel Hidden Feature:
    • Multiple Apis With For...
    Laravel Chunking - You Might Be Doing This Wrong - Problem and Solution:
    • Laravel Chunking - You...
    Laravel Tip - Properly Get Data Between Two Dates
    • Laravel Tip - Properly...
    Get Data From Multiple Databases In One Project | Laravel Tip
    • Get Data From Multiple...
    === Attribution ===
    Boy waving hand Video by VideoPlasty .com (pixabay.com/us...) from Pixabay
    #laravel #php #laraveltip #laratips

Комментарии • 20

  • @cultureofnepal2024
    @cultureofnepal2024 Год назад +6

    One more method missed bro. request()->user() or $request->user()

    • @Laratips
      @Laratips  Год назад +1

      Missed that one. Thanks for mentioning 🙏

  • @kaviyarasum6818
    @kaviyarasum6818 Год назад +1

    Hi brother, please make a video for the laravel query builder macro method. Can we create a new method like 'whereLike' method in a separate class?

  • @davidson7838
    @davidson7838 Год назад

    As always, thank you for the helpful tip. 💯

    • @Laratips
      @Laratips  Год назад

      You are most welcome

  • @JITENDERSINGH-xj5qn
    @JITENDERSINGH-xj5qn 10 месяцев назад

    How to get that laravel dashboard in browser is that extension?

  • @mmramadan496
    @mmramadan496 Год назад

    I'm sure that you are tring to solve the vscode autocompletion issue, becuase if you wrote these methods full name you'll get the right result.

    • @Laratips
      @Laratips  Год назад +1

      Yes, it's for the auto completion

  • @jameshello38
    @jameshello38 Год назад

    Btw, we can also do $request->user

    • @Laratips
      @Laratips  Год назад +1

      Whoops missed that one 😅
      Thanks for mentioning

  • @dm._.315
    @dm._.315 Год назад

    Nice

  • @CodeWithAbirOfficial
    @CodeWithAbirOfficial Год назад

    Please share your vs code setup

  • @leonvanrijswijk8409
    @leonvanrijswijk8409 Год назад

    Thx, but why you cannot use the functions on auth::user() ?

    • @Laratips
      @Laratips  Год назад +1

      Because of the reason I have mentioned in the video. It will not autocomplete the methods present on the User model.

    • @leonvanrijswijk8409
      @leonvanrijswijk8409 Год назад

      ​@@Laratips But if you type them completely yourself, are they allowed? And will they function?

    • @Laratips
      @Laratips  Год назад

      Yes absolutely. They will work.

  • @personalmail8083
    @personalmail8083 Год назад

    Hi Sir, Can you please upload a redis caching on laravel on eloquent and db queries in efficient way.

  • @personalmail8083
    @personalmail8083 Год назад

    Hi, Sir