meredevelopment

meredevelopment

Member Since 5 Years Ago

Experience Points
10,490
Total
Experience

4,510 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
92
Lessons
Completed
Best Reply Awards
0
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 3
10,490 XP
Jul
21
2 weeks ago
Activity icon

Replied to Connection Could Not Be Established With Host Smtp.sendgrid.net

I'd sure love to know if @naqibullah ever fixed this.

Apr
30
3 months ago
Activity icon

Replied to Querying A Specific Model Instance With/without A `where` Clause.

Ok thank you. So do you know if there’s a better way that doesn’t query the whole dataset again, and just the row I need?

Activity icon

Started a new Conversation Querying A Specific Model Instance With/without A `where` Clause.

Hoping someone can tell me what I'm doing wrong here (and please don't say "attempting to be a developer" 😂)

I have a model that has a JSON field in it, and I'm using a function to count the number of certain nested nodes in the JSON.

private function count_thing(Mymodel $mymodel) {       
    dump("Mymodel ID: ".$mymodel->id); //dumps the expected ID.

    return $mymodel
        ->whereJsonContains('columnname', ['jsonnodename' => true])
	->count();
}

Let's say the Model ID is 1 and I know that in this ID there are 2 matching nodes nested in the JSON column. Let's also say I know that in the whole DB there are 10 matting nodes, across all the IDs.

If I use $this->count_thing($mymodel) the returned count is 10, not 2.

In order to get the count for JUST the model being passed, I have to where() for the ID also like so:

private function count_thing(Mymodel $mymodel) {       
    dump("Mymodel ID: ".$mymodel->id); //dumps the expected ID.

    return $mymodel
        ->whereJsonContains('columnname', ['jsonnodename' => true])
	->where('id',$mymodel->id) //why is this needed?
	->count();
}

Seeing that I'm already querying the correct model ID (I think), why do I have to check the ID again?

Apr
27
3 months ago
Activity icon

Replied to Using An Abandoned Package Temporarily.

Thanks a lot @bobbybouwmann, I ended up pointing to my own branch of the repo hosted locally with the 'path' setting 👍

I'd also like to add for anyone else arriving here looking for reasons why something 'abandoned' might break their app... the 'abandoned' nature of 'Passless' turned out to be having no effect. It was something entirely unrelated to do with Job queueing, and I'm a complete idiot for not noticing it sooner.

Activity icon

Started a new Conversation Using An Abandoned Package Temporarily.

What I'd like to know know: Is there's some setting in Laravel that tells it not to use abandoned packages? Can I force it to use one temporarily?

Backstory: I've recently updated composer on a long-standing project and see that one of the core packages I was was using has been marked as abandoned, with no directly functional replacement. This is the first time I've come across this situation.

The Package is: https://github.com/DarkGhostHunter/Passless

As soon as composer update was run, the functionality broke. I can see that the 'Passless' files still exist in vendor and from what I can see, the package should still work. When using my app I see no logged errors, just that none of the expected login functionality happens, e.g no email with a temporarily signed URL is generated. so I'm not actually asking for help with Passless, or a replacement. I just want to understand Laravel's / Composer's handling / use of abandoned packages more please. Thank you!

Apr
24
3 months ago
Activity icon

Started a new Conversation Missunderstanding Php Artisan Schedule:run Use

Hi, I'm playing about with Jobs and scheduling. I'm trying to understand the way the scheduler respects the timing options like everyMinute() or daily(). At the moment I can't get the delay/schedule to be respected at all.

Scenario 1:

If I have this in Kernel.php:

protected function schedule(Schedule $schedule)
{
    $schedule->job(new ProcessThing)->everyMinute();
}

...and I have a job called ProcessThing at app/Jobs/ProcessThing.php with this handle:

public function handle()
{
    logger('ProcessThing fired');
}

...when I start php artisan queue:work and run php artisan schedule:run, the response is: Running scheduled command: App\Jobs\ProcessThing

and [timestamp] local.DEBUG: ProcessThing fired gets written to the log file.

Problem 1: That looks ok... but if I try php artisan schedule:run 5 times in quick succession, the process runs 5 times immedialtey. I'd have expected it to queue into the Jobs table, and fire every minute?

Scenario 2:

If I now change the schedule to this:

    $schedule->job(new ProcessThing)->everyFiveMinutes();

(after restarting the worker and flushing config just to be safe) If I now run php artisan schedule:run, the response is: No scheduled commands are ready to run.

Problem 2: I'd expected the job to be added to the jobs table, with an 'available' timestamp 5 mins from now. If I wait 5 mins and try php artisan schedule:run again, the job never gets queued or runs, and nothing is ever logged.

I think I'm fundamentally missunderstanding this scheduling thing, but can't see where. Please help if you can.