Skip to content
Advertisement

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. Something

How to validate a unique field on a record update

I am recently started a laravel project to control some activities, but I am currently having issues with the validation specifically when updating a specific record on a table that contains unique values A couple of notes a started this project a couple of days of the launch of laravel 8 last month so perhaps there some changes that are

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. AppViewComponentsFeedback.php And then {{ dd($feedbacks) }} in view file gives me error that this variable is not defined.

Advertisement