Posts by rafwell • 171 points
3 posts
-
0
votes3
answers1420
viewsA: How to get only the month of a date with Laravel 5.3?
If you are sending the date in format yyyy-mm-dd you can take it like this: date('m', strtotime($request->data_vencimento)).
-
7
votes3
answers7194
viewsA: What is a method " __contruct()"?
You don’t need it in all classes. Only for classes where you want some action done every time it is instantiated. When you charge the class$minhaClasse = new MinhaClasse() the constructor method is…
-
-1
votes2
answers54
views