Questions tagged [laravel-blade]

Blade is the simple, yet powerful templating engine provided with Laravel. Unlike other popular PHP templating engines, Blade does not restrict you from using plain PHP code in your views.

Filter by
Sorted by
Tagged with
4 votes
1 answer

Setting default of <options> in Laravel with PHP Match

I have a filter component that lets a user filter for events on a website. The user needs to see what category is currently selected in the filter. So I have an URL with parameters. e.g. ...
1 vote
2 answers

Laravel 8 blogging application

I am working on a blogging application in Laravel 8. In the FrontendController controller I have: ...
2 votes
0 answers

Laravel - Add different style to type of product

I'm working on a project where I have products. Each product can either be a theme, plugin or a plan. Now my idea was to add different styles to each of the types. For instance, Theme is red, Plugin ...
4 votes
2 answers

Get collection in blade and check if empty

If I want to display the addresses of a user in a blade file I do it like this: ...
  • 335
0 votes
1 answer

Show a search input bar depending on which path the user currently is viewing

I'm using Laravel with the Blade template engine. I'm trying to show a search input bar, depending on which path the user currently is viewing. The three paths are ...