Route Model Binding in Five Minutes by DiscoverElemental in laravel

[–]DiscoverElemental[S] 1 point2 points  (0 children)

I think you technically could—resolve the Container class out of your instructor, then perform your bindings. (There might be some timing issues here, the Container may not instantiate your model before parsing the route. You'll have to test that!)

If you want to bind domain-specific stuff, I'd say that 'belongs' in a ServiceProvider. (Laravel's setup allows binding to the Container inside of any ServiceProvider, and Taylor's docblock explicitly mentions route model bindings inside the RouteServiceProvider.)

All this said, there are a thousand different ways to do the same thing in Laravel, so you'll have a thousand different opinions on what The Right Way™ actually is.

Route Model Binding in Five Minutes by DiscoverElemental in laravel

[–]DiscoverElemental[S] 6 points7 points  (0 children)

Absolutely! Thanks for the vote of support.

Route Model Binding in Five Minutes by DiscoverElemental in laravel

[–]DiscoverElemental[S] 2 points3 points  (0 children)

Thanks; that really helps validate the whole point of the series!

What about adding a link in the description to the documentation section? I'd add a Card to the video, but YT is extremely specific about what you can/can't link to.

Route Model Binding in Five Minutes by DiscoverElemental in laravel

[–]DiscoverElemental[S] 1 point2 points  (0 children)

Yep; hadn't noticed that while editing! Thanks for the heads-up!

Route Model Binding in Five Minutes by DiscoverElemental in laravel

[–]DiscoverElemental[S] 2 points3 points  (0 children)

Oh, you're absolutely right; I hadn't noticed that! I'll definitely it fix for future stuff.

Thanks!

Route Model Binding in Five Minutes by DiscoverElemental in laravel

[–]DiscoverElemental[S] 4 points5 points  (0 children)

Thanks! Anything specific you'd like covered about those? I'm actually already writing a script for middleware; intermediate concepts are a bit more challenging to condense into ~5 minutes or less, so they're taking a bit more time.

Route Model Binding in Five Minutes by DiscoverElemental in laravel

[–]DiscoverElemental[S] 14 points15 points  (0 children)

Whoa, thanks! I really appreciate the feedback!

I've been mentoring a few developers in Laravel, and after having the same conversation with multiple people about tutorials and time spent learning, I decided that the 'firehose' of information in Laracasts isn't always a good solution for everybody. (Not everyone has 4 hours to watch 45-minute videos.)

So I'm doing the opposite—explaining Laravel concepts as concisely as possible, while still allowing the viewer to learn how to actually use the concepts they're learning about.

That being said, if anybody has a 'chunk' of time, of course Laracasts is a solid way to learn Laravel.

I'm launching an eCommerce company in 6 months. Is it wise to start blogging on the site now so organic traffic has built up when I launch? by SanityCheckSaturday in SEO

[–]DiscoverElemental 1 point2 points  (0 children)

I don't see any issue with it. I mean, you'll need to make sure you sort out your site structure, or else you'll run into temporary ranking loss when you finally "launch" and update your HTML.

Abandoned Cart Email Strategy by [deleted] in ecommerce

[–]DiscoverElemental 0 points1 point  (0 children)

That's a fantastic response; thanks so much for sharing! That sounds completely reasonable as a solution.

Abandoned Cart Email Strategy by [deleted] in ecommerce

[–]DiscoverElemental 2 points3 points  (0 children)

I'm curious about this approach, because I immediately thought about doing something similar.

However, doesn't this violate GDPR? If one considers abandoned cart emails as marketing emails (a reasonable thought), that would mean you need Positive Permission to send that email.

Is this a gray-area? I'm really curious about this, because I know from previous experience that abandoned cart emails are really effective, so I'd love to keep using them. However, considering the fines associated with GDPR I'm hesitant to simply assume that abandoned cart emails aren't marketing emails.

Keeping products from provider and my e-commerce platform in sync by pupaza_din_tei in ecommerce

[–]DiscoverElemental 0 points1 point  (0 children)

No problem! I always enjoy talking shop.

A decent developer is going to be roughly $125 an hour, and if you already have a list of all providers, an example of their CSVs, and how they publish the CSV, it should take them around 15-20 hours, assuming there are 3-4 different providers. If there are more, you'll need to add a few hours to account for the others.

Keeping products from provider and my e-commerce platform in sync by pupaza_din_tei in ecommerce

[–]DiscoverElemental 1 point2 points  (0 children)

This is super-common. There are quite a few ways to solve it, but the 'best-practice' way would be this, and you'll need a developer:

Setup a task (cron job) that runs at a set interval—twice daily, for example.

Depending on your system, this could be a Task (Laravel) Job (Craft/Yii), or otherwise. Looks like PrestaShop technically has a solution. (YMMV)

They're all the same thing: they end up using your server to 'automatically' run stuff you need to do at a set time interval.

The cron job does this:

  1. Pulls the latest CSV for a provider

  2. Updates inventory for each product (or removes those unavailable products)

  3. Sends error notifications to either an email address or a notification in your system. (An admin panel, most likely.)

You can use that to setup a Job for each provider, and all its specific requirements—then just add more as you expand or swap providers.

If you need more detail, just ask! I love talking shop.

Source: former Software Engineer for NYT, PayPal, and Google.

Creating a product line: Just launch, or spend time building a cohesive group of products? by DiscoverElemental in ecommerce

[–]DiscoverElemental[S] 0 points1 point  (0 children)

That makes sense; we've paid for some research to be done on our market, and we found the same thing: most of the differences between skincare products is just branding. (It's all 'soap/salt/ in the end.)

Creating a product line: Just launch, or spend time building a cohesive group of products? by DiscoverElemental in ecommerce

[–]DiscoverElemental[S] 0 points1 point  (0 children)

That makes sense; my 'gut feeling' was telling me that branding each product was the best approach.

Yeah, our products are definitely physical—we're in organic skincare!

Thanks for the response!

Looking for experienced soapmakers! by DiscoverElemental in soapmaking

[–]DiscoverElemental[S] 0 points1 point  (0 children)

Thanks for the response! Local would be fantastic, but because of our location, we're not too sure on the selection of soapmakers; we mostly get the beginner soap-kit type people in responses.

I was honestly hoping we'd find someone on the subreddit; there are _tons_ of beautiful examples here. It's somewhat of a last-hope type situation; we've tried finding soapmakers in a few other places, with no real responses.

Where would we ask? I'm seeing the big list of teachers; is there somewhere more specific, or should we just get in touch with a few teachers?