Posts by Mauricio Assis • 41 points
5 posts
-
0
votes1
answer502
viewsQ: Format date in format
I have that return and I want to convert so as to save the date in the bank YEAR-MES-DIA $dataOs = date('Y-m-d', strtotime($request->data)); When I print like this dd($dataOs); Sometimes it comes…
-
2
votes1
answer345
viewsQ: How to return relegated records between Laravel tables
I have 2 tables city and state I own the state and would like to know how to return all the cities related to the state Parana simply without having to do a loop Type $estados = App/Estado::all();…
-
1
votes1
answer163
viewsQ: Transform 2 php array into a single array
I have 2 Arrays: "val" => { "0": "2" "1": "4" "2": "6" "3": null "4": null } "p" => { "0": "4" "1": "5" "2": "7" "3": "8" "4": "9" } Before that I want to take the elements of array val which…
-
1
votes1
answer100
viewsQ: Filter records within one month interval
I have several items sold in a month and would like to display only the items sold in the current month. Example: in September I had a total of 30 items sold, and in August, 20 items. How do I take…
-
0
votes1
answer677
viewsQ: Not to pass an element ID through the Laravel URL
This is my route: Route::get('empresas/deletar/{notice}', 'EmpresaController@deletar'); This is the action of the button: This is my role in Controller: What happens if I pass this URL directly in…