13 Laravel Tips in 10 Minutes: October 2024

Поделиться
HTML-код
  • Опубликовано: 8 фев 2025
  • A monthly tradition of the most valuable tweets for that month.
    Support the channel by checking out my products:
    My Laravel courses: laraveldaily.c...
    Filament examples: filamentexampl...
    Livewire Kit Components: livewirekit.com
    Other places to follow:
    My weekly Laravel newsletter: us11.campaign-...
    My personal Twitter: / povilaskorop

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

  • @rdvr
    @rdvr 2 месяца назад +5

    Very useful thanks!
    My favourite tips:
    1. data_get() / fluent()
    2. Carbon age property

  • @Mimi019283
    @Mimi019283 2 месяца назад +4

    Great video! The Pivot model is also useful when dealing with uuids, when you have a pivot table that has uuids you can create the pivot model and add HasUuids trait to it :)

    • @joshuagfttcwatchman6210
      @joshuagfttcwatchman6210 2 месяца назад

      Hey, I'm really interested in learning how this works. I'm still kind of new to this. I have a side project that generates uuids for guests and merge it to Event qr code which has already been generated and cached. My think Is that this way I don't have to generate new qr code for guest any time guest is created. Any insight?

    • @Mimi019283
      @Mimi019283 2 месяца назад

      ​@@joshuagfttcwatchman6210 Sorry, can't help you, good luck though :) But aside from that, just to clarify, my comment was about dealing with uuids in general, so for example when you have a pivot table for many to many relations and you use uuids for id of that table you need to create a pivot model and add the HasUuids trait to it otherwise it wont work because Laravel will expect that table to have normal ids, or so i think :D

    • @joshuagfttcwatchman6210
      @joshuagfttcwatchman6210 2 месяца назад

      @@Mimi019283 It's all good. I'll look into that though. Cheers.

  • @kirayamato6128
    @kirayamato6128 2 месяца назад +1

    laragon still the winner for me. simple version management for web server and database are fine as wine

  • @ryiad2010
    @ryiad2010 2 месяца назад

    many thanks it is very useful

  • @logudotcom
    @logudotcom 2 месяца назад

    Useful tips🎉

  • @karlebh
    @karlebh 2 месяца назад +1

    I could add anything to a carbon object and would get the desired result. 😀

  • @ali_raza
    @ali_raza 2 месяца назад +2

    My GitHub comment at line 54 on Laravel installation 1:38. The composer create-project command should be there in the docs instead of being removed silently. Not a good edit by Taylor

    • @CaioWilson
      @CaioWilson 2 месяца назад

      agreed, not taylor, but the team in general.

  • @JarkkoHautakorpi
    @JarkkoHautakorpi 2 месяца назад

    How often do you guys install a new Laravel for a project, instead of just forking your own custom "starter pack"?

    • @LaravelDaily
      @LaravelDaily  2 месяца назад

      In most cases, I start from Laravel and Breeze

  • @eslammostafa1247
    @eslammostafa1247 2 месяца назад

    Useful tips, thank you
    My favorite one
    $user->name ??= 'guest'; because it's shorter and straightforward for me.
    Also, The carbon tips were great too

  • @ADILELALAOUI-c8h
    @ADILELALAOUI-c8h 2 месяца назад

    The much I like it is the data_get() / fluent() / $object->get()