Skip to content

Tag: laravel-blade

Use blade value inside a component

At the moment I can successfully display some generated content in my blade view by calling a variable with a key, like this: What I would like to achieve, is to reuse the key for a class name for example. The reason for that is that I want to easily access this content with JavaScript by using a selector. So…

increment value of i is not working properly

I am not able to understand why value of i is not setting to zero and it’s behaving like this st the start of both form value of i is set to zero but not getting the desired out in html form output is showing as result i want should be something like Answer First it should be <?php $i

hidden magic in Laravel blade components

I had anonymous component resourcesviewscomponentshomepagefeedback.blade.php to render feedback on homepage. From the beginning it was just html. Then I decided to connect Class file. I already had another View Class component and I just copied it manually instead of using artisan command. AppViewComponentsFe…