jeffreyvanrossum

PHP developer at vanrossum.dev

Member Since 4 Years Ago

Bennekom

Experience Points
34,080
Total
Experience

920 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
16
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.

  • Community Pillar

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

Level 7
34,080 XP
Jan
06
4 months ago
Activity icon

Awarded Best Reply on Updating From Development To Test Environment

The best way would be to install composer on your production environment :-)

Otherwise, copying the folders would be the only way I guess - but that is not ideal.

Jan
05
4 months ago
Activity icon

Replied to Problems With A Custom Helper Function

Hmm, when I follow the steps as you've described, I don't run into issues.

Activity icon

Replied to Problems With A Custom Helper Function

Are you echo'ing the output?

Activity icon

Replied to Problems With A Custom Helper Function

Just to be sure, is your use Helper; statement below the namespace declaration?

Activity icon

Replied to Updating From Development To Test Environment

The best way would be to install composer on your production environment :-)

Otherwise, copying the folders would be the only way I guess - but that is not ideal.

Dec
29
4 months ago
Activity icon

Replied to Vue + Tailwind: Closing Menu On Click Outside Element

It shouldn't, because it would only alter the open state if clicked anywhere but your menu. Try it out.

Dec
28
4 months ago
Activity icon

Replied to Vue + Tailwind: Closing Menu On Click Outside Element

Personally, I would extract your menu in a separate component. Your header component is quite large this way.

In order to close an element when clicked outside of it, you would have to add an event listener.

So when you change the state to open, you would do something like this:

document.addEventListener('click', this.closeWhenClickedOutside);

Then the implementation of that method would look something like this:

closeWhenClickedOutside(event) {
  if ( !event.target.closest('.dropdown') ) {
    this.open = false;
    document.removeEventListener('click', this.closeWhenClickedOutside);
  }
}

Where .dropdown must point to your menu.

Nov
24
5 months ago
Activity icon

Replied to Converting Array To Xml

You can unset empty values from the array before you convert to XML.

You could use the array_filter function for that.

Nov
18
5 months ago
Activity icon

Replied to SQLSTATE[42S22]: Column Not Found: 1054 Unknown Column ' Id' In 'where Clause' (SQL: Select Count(*) As Aggregate From `channels` Where ` Id` = 3)

The code you shared does not seem to be related to the error. Seems to be an issue with calling channels somewhere, a ChannelController perhaps?

Activity icon

Replied to BigSur?

Have been on using Big Sur for a while now (beta versions too), and no issues so far. The only thing I noticed was that the terminal in VSCode seems a little laggy. Other then that no issues. Using Laravel Valet for local development, VSCode and PhpStorm.

Activity icon

Replied to How To Iterate A Collection And Have Access To Preceding Item Within The Loop

Something like this perhaps?

collect([1,2,3])->each(function ($item, $key) use ($collection) {
    $previous = $collection[$key-1] ?? null;
    //
});
Activity icon

Replied to Navbar Already Disappear In Xl Size

Not 100% about this (not tested), but I guess you could set xl:hidden on the sidebar instead of lg:hidden.

https://github.com/tailwindcomponents/dashboard/blob/master/source/_layouts/sidebar.blade.php#L1

Nov
17
5 months ago
Activity icon

Awarded Best Reply on Search Multiple Columns As One

I think you can do a full text search if you are using MySQL.

https://www.w3resource.com/mysql/mysql-full-text-search-functions.php

You would have to alter your table to support it.

DB::statement('ALTER TABLE addresses ADD FULLTEXT fulltext_index (street, city, state)');

And to perform a where you do the following:

$query->whereRaw('MATCH (street, city, state) AGAINST (?)' , [$search]);

I have not tested the example code.

Activity icon

Replied to Search Multiple Columns As One

I think you can do a full text search if you are using MySQL.

https://www.w3resource.com/mysql/mysql-full-text-search-functions.php

You would have to alter your table to support it.

DB::statement('ALTER TABLE addresses ADD FULLTEXT fulltext_index (street, city, state)');

And to perform a where you do the following:

$query->whereRaw('MATCH (street, city, state) AGAINST (?)' , [$search]);

I have not tested the example code.

Nov
12
5 months ago
Activity icon

Replied to New Markdown Package For Laravel

Looks great @sinnbeck, might try it out soon. Thanks!