I have big problem to enable Auth users download stored files in laravale storage. Users has in table users field id_message which is unique name of folder where user has file to download. What has to …
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
Preserving leading zeros in Blade view
I am writing a Laravel 7 application using Blade views. One of my MySQL tables contains the clients tools which have an id that follows no specific pattern (restructuring these ids is out of …
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
laravel foreach input radiobutton displayed incorrectly
I’m trying to display the options for the questions. i have the problem that when im doing it this way: @section(‘content’)
how to retrieve data from laravel relationship?
Hello im trying to do a quiz app with laravel and im struggeling with retrieving my questions with category.. i have a unsightly solution with this but it’s not dynamically.. public function …
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.
Laravel 5.8, CRUD when editing image didn’t show up (blade)?
I try to create edit blade to get old value from database. the title successfully appears, but the image and body (textarea) didn’t appears, here is some code of my edit.blade.php <form action="{{…
How to know the controller and method name inside blade file in Laravel 6?
I am new to Laravel. I was practicing setting up a blog in Laravel 6. I have a layout.blade.php file where all the basic HTML is written. In the content section of the layout.blade file, I want to @…