'Built with Laravel' Code Review: Blade Components for Layout

preview_player
Показать описание
In this video, we're talking about Blade components used for information and layout in the open-source project "Built with Laravel".

Links mentioned in the video:

- - - - -
Support the channel by checking out my products:

- - - - -
Other places to follow:
Рекомендации по теме
Комментарии
Автор

I think that the <x-layout> syntax is more readable but the @extends syntax also gives you inheritance capabilities.

SimonRichards
Автор

Besides readability to use components, components are much powerful and reusable and the good this is that you can only share data that it needs.

For layouts we have been using @extends but <x-layout> is also fun to play with

shahsawoodshinwari