Skip to content

Glossary

Laravel Blade: the framework's template language

Laravel's template system for HTML pages generated on the server.

Blade produces HTML on the server. A template is ordinary HTML with a few extra instructions for conditions, loops and inserting values. Templates inherit from each other, so the header and footer exist once instead of again on every page.

Blade takes two things off your hands. Inserted values are escaped by default, which rules out the most common form of cross-site scripting from the start. And there are components: recurring parts such as a card or a form field are defined once and used everywhere.

When server-side is the right choice

HTML produced on the server is there immediately. It works without JavaScript, search engines read it directly, and it needs no second application that has to be built and shipped. For most classic line-of-business applications that is the simpler answer.

As soon as an interface holds a lot of state of its own, that shifts. Then the route runs through an API and a front end of its own. Both routes can be combined in one application; there is no need to decide globally.

FAQ

Häufige Fragen

Blade or a front-end framework?
For applications made of forms, lists and detail pages, Blade is usually quicker to build, easier to run and better for search engines. A front end of its own earns its keep when the interface holds a lot of state, an editor or a map with live data for instance.

Related

Terms that belong with this one

A project, or a question?

Write and tell us what it is about. You get an assessment from somebody who works with Laravel themselves, not from a sales desk.