afoysal's avatar

Customize Breeze template

I installed Breeze in Laravel 8. I found <x-guest-layout>, <x-auth-card> & <x-label> in register.blade.php file. These are new to me.

How can I customize Registration Page ?

0 likes
5 replies
tykus's avatar

Whenever you install Breeze, these view component templates are added to the resources/views/components directory; the register page is in the resources/views/auth directory. These are your app file, and free for you to customise as needed.

1 like
afoysal's avatar

Thanks for your reply @tykus. But how can I change HTML codes which has <x- ? What is the meaning of this <x- ?

afoysal's avatar

Thanks @tykus . I read several docs. But I didn't get any clear conception about this <x-. Could you please help me in this regard ?

tykus's avatar

What clear conception are you struggling with?

Blade Components allow us to define custom HTML elements which we can use inside our Blade templates; they are ultimately compiled down to regular HTML whenever passed through the Blade Compiler.

This approach allows us to create abstraction in our views which is useful if we have repeated template parts with similar styling, behaviour, logic etc. This can make our view templates easier to understand, and makes our repeated templating easier to maintain - there is one source of truth for that repeated logic.

1 like

Please or to participate in this conversation.