Ep44 - Create Links that will Expire in Laravel?! - Signed Route

Поделиться
HTML-код
  • Опубликовано: 27 дек 2024

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

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

    this is excellent can I use only one route and controller

  • @markdonatech
    @markdonatech 2 года назад

    how do i generate url that expires after it being clicked

    • @Jasterrrr
      @Jasterrrr 2 года назад

      Usually signed URLs are used in 1-time actions such as resetting passwords or accepting invitations, etc. After the action is complete you can delete the relevant record in DB (a row in password_resets or invitations table) which will make the link useless as the associated record doesn't exist anymore.

  • @parablesboltnoel
    @parablesboltnoel 2 года назад

    I love your videos, excellent presentation. Very easy to follow. Great Job

    • @Acadeaio
      @Acadeaio  2 года назад

      Glad you like them!

  • @parablesboltnoel
    @parablesboltnoel 2 года назад

    What happens if you change the expiration time? 🤔

    • @Acadeaio
      @Acadeaio  2 года назад +1

      As I mentioned in the lesson, expiration time is part of the hash, so changing the expiration time will lead to a mismatch of the hash and hence Laravel will block the request. That's the beauty of the system.

  • @sarkhanrasimoghlu961
    @sarkhanrasimoghlu961 2 года назад +1

    before watching i liked you video bro

    • @Acadeaio
      @Acadeaio  2 года назад +1

      Thanks for the support bro!