Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

bthooper's avatar

bthooper wrote a comment+100 XP

3mos ago

Laravel From Scratch (2026 Edition): Ep 5, Pass Data to Views

When I send data via the data array in the route, should I also declare that data in my @props in the view? I noticed that I can do that and use the @props to establish default values and it seems to work.....and it seems more consistent with the way data is passed in via attributes. But I wasn't sure if that was a good idea of not??