Skip to main content

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
3 votes
2 answers
225 views

Laravel Event Filtering Controller

So I am currently writing a function in laravel that handles URL parameter filters. How the code works: So we have the following two URL parameters: timeframe and <...
Nifty Matrix's user avatar
5 votes
1 answer
2k views

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 which category is currently selected in the filter. For this there is a URL with parameters. e.g. ...
user avatar
1 vote
2 answers
258 views

Laravel 8 blogging application

I am working on a blogging application in Laravel 8. In the FrontendController controller I have: ...
Razvan Zamfir's user avatar
2 votes
0 answers
48 views

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 ...
Rainier Laan's user avatar
4 votes
2 answers
7k views

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: ...
Adam's user avatar
  • 345
0 votes
1 answer
77 views

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 ...
user129329's user avatar
5 votes
1 answer
291 views

Let users create custom blade templates

Problem: I need to let my web-app users create their own blade layouts. The content shall change based on what is in the database, hence their layouts should become dynamic in nature. With only the ...
Huzaib Shafi's user avatar