Posts by Renan Leme • 39 points
4 posts
-
0
votes2
answers421
viewsA: Convert and save time to database with PHP
You can put the required HTML attribute in your HTML. Thus, the field will always be required. Something like: <input type="text" name="hora" required> Thus, the request will not be made to…
-
-1
votes2
answers621
viewsA: Group route does not work on Laravel 5
Already tried to create route '/panel' outside the group? I believe it will work :) Route::get('/painel', 'LoginController@getLogin'); It should be before the group in the route file.…
-
2
votes1
answer361
viewsA: Laravel - How to make a Try/catch in the view?
It’s not the right thing to Try/catch in the view. The idea is to always return something to it so you don’t have to do this validation. You can check if the variable has value, if it has its value,…
-
2
votes3
answers445
viewsA: How to make the relationship of an extra field (pivot) in belongsToMany
I believe that as in your pivot table you are just saving the user id, you will have to make a find with this id, or the very Join you commented. According to the documentation, it does not…