ianfain

ianfain

Member Since 1 Year Ago

Experience Points 12,370
Experience Level 3

2,630 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed 120
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    Laracasts Evangelist

    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.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

25 Nov
7 months ago

ianfain left a reply on 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.

ianfain 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?

ianfain left a reply on 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.

19 Nov
7 months ago

ianfain left a reply on Xss Validation Support In Laravel Out Of The Box?

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

ianfain left a reply on Xss Validation Support In Laravel Out Of The Box?

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.

ianfain left a reply on What Is The Efficient Way To Store Config Option?

@GTHELL - So store all of the settings as JSON in one record in the db?

ianfain left a reply on What Is The Efficient Way To Store Config Option?

@GTHELL - How would you use key-value pair database for setting? I don't understand what you said.

ianfain left a reply on What Is The Efficient Way To Store Config Option?

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.

18 Nov
7 months ago

ianfain left a reply on Why Does Laracasts.com Use JQuery Over VueJS

@ROBJBRAIN - I guess only Jeffrey can answer that lol.

ianfain left a reply on 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.

ianfain left a reply on 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.

ianfain left a reply on Live Pair Programming

@DRFRAKER - That's cool man hope it works out

ianfain left a reply on 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.

ianfain left a reply on Live Pair Programming

Can someone explain what DevAllies does exactly? Their site has very little info on it.

ianfain left a reply on 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.

17 Nov
7 months ago

ianfain left a reply on Where To Record A Log To Database When An Notification Is Successfuly Sent?

Do you mean use the Log helper or actually just create a database log table?

ianfain left a reply on How Do You Guys Organize Your Assets?

@KOBEAR - Nice. @stack is a new one for me. Cool.

ianfain left a reply on 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.

05 Sep
10 months ago

ianfain left a reply on Is There A Series Coming For The New Laravel 5.7?

@Krisel I sometimes find it hard to find the new series here. I feel pretty silly now. Thanks for your response.

ianfain started a new conversation Is There A Series Coming For The New Laravel 5.7?

Like a 'what's new' and 'how to upgrade' series?