repat

Remote Certified Laravel Developer at Repat LLC

Member Since 4 Years Ago

Asunción, PY| Hamburg, DE

Experience Points
26,120
Total
Experience

3,880 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
229
Lessons
Completed
Best Reply Awards
1
Best Reply
Awards
  • start your 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-in-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 Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist 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.

Level 6
26,120 XP
Jun
14
4 months ago
Activity icon

Replied to Valet: CURL Error 6: Could Not Resolve

Thanks @cre-mer, that did the trick! However, you need to move 127.0.01 (or ::1 for that matter) up as the first address to check. I didn't work for me when e.g. Googles (8.8.8.8) was first.

May
07
5 months ago
Activity icon

Replied to Spark Switches Over To Tailwind?

If you're buying now, you're buying a certain version of Spark. That version will be updated at long as it's supported. It's based on Laravel 6, which is a long term support (LTS) version.

When the next version comes out, you upgrade for half the price. Or you can just continue to use the one you bought as long there are updates for it. Laravel 6 is supported until 3rd September 2022.

May
05
5 months ago
Activity icon

Replied to Add JQuery To Spark

Without providing more details and error messages it will be difficult to help you. However, you can just pull in jQuery via CDN like this:

<script
  src="https://code.jquery.com/jquery-3.5.1.min.js"
  integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
  crossorigin="anonymous"></script>

https://code.jquery.com/

Activity icon

Replied to Spark Switches Over To Tailwind?

"Licenses are valid for an entire major release "series". In other words, a license entitles you to all updates until the next series release. That current series is Spark Aurelius (initially released February 2018) and includes Spark 6.0+. New series are released roughly once every two years. Many minor updates are made throughout a series release and all of those updates are free to existing customers. Each license may only be used on a single site unless it is an "unlimited" license."

-- https://spark.laravel.com/licenses

However, upgrading from an old license (v5 in my case) is only $49 (vs $99):

"This will upgrade your license to the latest version of Spark, granting you access to its source code. License upgrades are offered at a 50% discount to existing Spark customers."

Activity icon

Replied to Justified? Advocate For Better Laravel Code Base

This pops up every now and again, the points are at least 4 years old

As this user points out, the 2 major points are mostly:

  1. Eloquent/Active Record

Answer: Don't use it then. You can just use the Query Builder.

  1. Facades

Answer: Don't use it then. They are also disabled in Lumen (though can be enabled with $app->withFacades()).

Apart from that, Larastan is a static analyzer that understands Laravel magic and you can use barryvdh/laravel-ide-helper for your IDE as he pointed out in his article.

Activity icon

Replied to Backing Up Your Database

It depends, what kind of database do you have?

I can recommend laravel-backup, which can produce a (gzipped) mysqldump file and put it on any kind of file system, e.g. S3 bucket in another region. It can also back up your user data. You can run that with the scheduler however often you need.

On top of that we don't run the databases ourselves but use managed databases for MySQL, PostgreSQL and Redis on DigitalOcean, which has a daily backup and you can restore to any point in the last week. AWS RDS has even more options.

It really depends on what kind of backup you need. Is it for a hobby side project, fast paced startup or big corporate setting? And how fast it would have to be available and how much you are willing to pay for it?

Also have a look at Percona Xtra Backup

Apr
29
5 months ago
Activity icon

Replied to "Pause" Queue Workers Until All Previous Jobs Completed

One simple idea would be some kind of mutex, e.g. in a database. So the first job would set a mutex and the last one unlocks it. Meanwhile, if another queue worker picks up the next batch, it won't start and can just sleep() a reasonable time. Probably not the the most elegant or Laravel-ish solution...

Activity icon

Replied to Simplification Of Conditions.

First of all, it seems like you want to compare if (x = y), but you're actually using the assignment operator = instead of comparing with ==.

Apart from that, you can loop through these attributes and use ->$attribute. Not sure if that's what you were looking for.

$attributes = ['email', 'about', 'skills']; // ...
foreach($attributes as $attribute) {
	if($user->$attribute = request($attribute)) {
		$user->save();
	}
}

If the user is not logged in you will get a problem with Auth::user()->id. Just use Auth::id(), which would return null if no user is found. You would also need to check that or just e.g. findOrFail().