Posts by Weslei Ferreira da Silva • 1 point
12 posts
-
-2
votes1
answer502
viewsA: Format date in format
Laravel already comes with a library to work with dates, it is very easy to use. Documentation. To convert into the format you need you can work with the Mutators directly into your model, would…
-
0
votes1
answer92
viewsA: How does an Ionic application connect to a server?
Friend, it’s very simple. Just import the Native Http library from Ionic and make the requisitions to the required server. Ionic Documentation Example: import { HTTP } from '@ionic-native/http';…
-
0
votes1
answer42
viewsA: Run Ajax first
You can use the Sync and await of ES6, this way you make the rest of your code wait for the result of your ajax function to continue the code, in your case awaits the boolean return to give sequ…
-
-1
votes2
answers415
viewsA: auth::Attempt method is not logging in
Instead of generating your password using Hash:make, try generating using bcrypt($data['password']) and see if it works. Using the Attempt method of the Laravel you can use the fields you want, not…
laravelanswered Weslei Ferreira da Silva 1 -
0
votes4
answers1366
viewsA: Creating elements with jQuery
You can do in pure Js as follows var content = "<div class='card'>Conteudo do card</div>"; document.getElementById('ID-CONTENT-DIV').insertAdjacentHTML('beforeEnd',content ); I hope I’ve…
-
0
votes1
answer203
viewsA: Problems authenticating users of different types - Laravel
Remembering that you must change the authentication driver according to the User Type, you can do through a Middleware. Example: config([ 'auth.defaults.guard' => 'user',…
-
3
votes3
answers121
viewsA: MAX() returning multiple lines
It will bring MAX into your grouping, that’s correct. If you want to look at the MAX of the whole table, just leave MAX in select. Again, if you let the grouping it will always show the maximum…
-
0
votes2
answers164
viewsA: How to filter Combobox data using Laravel Framework?
The modelo_id error is occurring because when you are performing the checklistEstrutura query, you are using the get() method, this function always returns an array, so for you to be able to access…
-
0
votes0
answers27
viewsQ: Centralizing information
Good morning. We are starting to develop several small solutions for web (We Use Laravel) to meet the needs of our customers, based on this I came up with a great question. I would like to…
-
0
votes0
answers89
viewsQ: build ionc Ios - Virtual machine
Does anyone know of any service that provides virtual machines with MAC operating system ? I only need to build my IONIC application to generate the IOS application.
-
1
votes0
answers44
viewsQ: Geolocation by the enterprise segment
Good morning, does anyone know a way to locate a company by its segment ? Example: I want to check which companies exist in a given radius, whose segment is pharmacy. I saw this in another software…
google-mapsasked Weslei Ferreira da Silva 1 -
-1
votes1
answer355
viewsQ: Save user - Angular2/4
I’m new at angular. Take away a question how could you save me logged in user, so I don’t lose my user if browsing is reloaded ? As if it were a PHP session. Thank you for your attention.
angularasked Weslei Ferreira da Silva 1