Posts by Daniel Kartabil Bernardi • 90 points
8 posts
-
0
votes1
answer43
viewsA: How do I create a counter inside a FORELSE or FOREACH in Laravel?
@forelse($members->take(10) as $member) resto do código..
-
0
votes1
answer30
viewsA: Error Call to a Member Function store() on string - image upload error
The create method of the controller is the view, that is, you do not create/change/delete the database in view, the Laravel uses by default the "store" method to create the data, IN CASE on the…
-
0
votes2
answers61
viewsA: How to get the value of buttons created through a foreach loop in php/Laravel?
I believe the error is occurring because you are trying to get the value from an ID, the problem is that in HTML the ID is unique, and when you foreach, you are iterating more elements with the…
-
0
votes2
answers33
viewsA: Laravel : Form and fetch the ID
I don’t know if I understand the question very well, but I’ll try anyway. Would you like to send the chapter ID to the controller and in the view show the chapter name? In this case just put the id…
-
0
votes1
answer35
viewsA: Laravel - Controller - Show data from two tables
First of all it would be interesting to know what error is occurring, but you can already notice that your foreach are not well structured. For example you started a foreach below the thead tag and…
-
0
votes1
answer125
viewsA: How popular to select according to other select data in Laravel?
I use Jquery and Ajax a lot to do this kind of service, I do not guarantee you is the best solution, possibly you can handle this information in the javascript itself, without necessarily making a…
laravelanswered Daniel Kartabil Bernardi 90 -
-1
votes2
answers64
viewsA: How to use a customizable name for the password field in Laravel 8?
I would try to look in the Authenticateusers trait, in the validateLogin function, change the password in the validation by the passwordhash, maybe the error is in this validation that is giving the…
-
3
votes2
answers132
viewsA: Make the input text field mandatory if the corresponding checkbox is selected
I don’t believe it is the best solution, but you could add the required via javascript, in case you must be using a javascript to make visible the selected input, then inside the code would put this…