Member Since 1 Year Ago
2,630 experience to go until the next level!
In case you were wondering, you earn Laracasts experience when you:
Earned once you have completed your first Laracasts lesson.
Earned once you have earned your first 1000 experience points.
Earned when you have been with Laracasts for 1 year.
Earned when you have been with Laracasts for 2 years.
Earned when you have been with Laracasts for 3 years.
Earned when you have been with Laracasts for 4 years.
Earned when you have been with Laracasts for 5 years.
Earned when at least one Laracasts series has been fully completed.
Earned after your first post on the Laracasts forum.
Earned once 100 Laracasts lessons have been completed.
Earned once you receive your first "Best Reply" award on the Laracasts forum.
Earned if you are a paying Laracasts subscriber.
Earned if you have a lifetime subscription to Laracasts.
Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.
Earned once you have achieved 500 forum replies.
Earned once your experience points passes 100,000.
Earned once your experience points hits 10,000.
Earned once 1000 Laracasts lessons have been completed.
Earned once your "Best Reply" award count is 100 or more.
Earned once your experience points passes 1 million.
Earned once your experience points ranks in the top 50 of all Laracasts users.
Replied to Track How Many Users Online In Real Time?
@PETRIT - I'm looking for a solution that I can implement in a backend admin panel dashboard.
Started a new conversation Track How Many Users Online In Real Time?
What would be a good way to approach adding a real-time "users online" counter? It would go in the admin panel, for example.
I'm not talking about specifically authenticated users, I mean visitors viewing the site. Is there a preferred/best way to go about this?
Replied to Broke My Project After Renaming Controller
Not that this will help you presently, but you should definitely look into using git for version control for issues like this.
You could run htmlspecialchars() or strip_tags() on any request input that is supposed to be a body of text.
I can't see where you would need to do this in Laravel otherwise, because if you're validating form data then the validator rules inherently would take care of this problem if they are anything other than the 'required' rule.
For example, using rules such a numeric, email, regex, integer, etc. all would return an error if the input contained any script tags
OP has 10k user points but wants to know if alert('boom') can be validated? He must be asking the wrong question. I'm not sure what he's asking.
@GTHELL - So store all of the settings as JSON in one record in the db?
@GTHELL - How would you use key-value pair database for setting? I don't understand what you said.
This is a topic I would like to know more about. The way I've been doing it is by creating a table in the database called settings with columns "name", "toggle", and "options".
Settings can either be one of two things -- a toggle (on/off) or also have options with it (i.e. on but using a certain value).
So for example, my e-commerce app, there might be a toggle setting that is called "delivery". In the toggle column, it will either be a 1 or a 0. Options would be null. Delivery is either offered in the front end or it isn't.
An options setting for example, would be enabling sales tax. It's called "sales_tax", would have a toggle of 1 (to be turned on and active) and under "options" is the value of "0.085" or whatever tax value gets specified in the backend admin panel.
Now, when certain methods of my app run, they check to see if certain settings are enabled or disabled. If enabled, do one thing (perhaps using specified options/value), if disabled then do another thing.
That's how I've been doing it. I haven't come across any tutorials or videos on the subject.
Replied to Why Does Laracasts.com Use JQuery Over VueJS
@ROBJBRAIN - I guess only Jeffrey can answer that lol.
Replied to Why Does Laracasts.com Use JQuery Over VueJS
Probably because it best suited the project. A developer who I highly respect once told me that, "the project dictates the tooling, not the other way around."
So my guess is that jQuery was probably a better fit for the things that needed to be done.
Replied to Ajax
Ajax is definitely not new and has been around for a while. That being said, that's not to imply that it's not useful or relevant.
Replied to Live Pair Programming
Can someone explain what DevAllies does exactly? Their site has very little info on it.
Replied to Using Jquery Inside Vue Component Script
Take caution with using jQuery with Vue. They often run into conflicts with each other. They don't like sharing the DOM. Vue also recycles elements so sometimes using jQuery on a certain element won't work if Vue recycles it do a different class. I've run into issues with this.
From everything I've read, we really shouldn't be using jQuery if we're using Vue. There's likely a way in Vue to do what you want jQuery to do. You're probably thinking, just like I did, that "that's great, but that doesn't really help me." It just means study Vue more I think. But yeah, like @realrandyallen said, jQuery is preloaded and ready to go already.
Do you mean use the Log helper or actually just create a database log table?
Replied to Installation Best Practice
Just repeating what has already been confirmed... if you're on mac then 100% use Laravel Valet. If you're on Windows, then donate your machine and go buy a mac. lol.