Posts by Antonio Barreto • 56 points
2 posts
-
2
votes1
answer382
viewsA: How to make the CRUD by model in Laravel?
Your question is a little vague, but I think I understand your doubt. How could I make Model take that responsibility? The model you already have this responsibility. It is the Eloquent who knows…
-
2
votes1
answer1537
viewsA: Laravel 5.4: AJAX request using route with JS variable?
The problem is that the url generated with route('getEsp', ...) is processed on the server, while the variable servico is only available for JS. One way around this is to generate the path url with…