Member Since 2 Years Ago


Experience Points 12,910
Experience Level 3

2,090 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 127
Best Reply Awards 0
Best Reply
  • 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.


    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.


    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 Mar
3 months ago

jeffreyvanrossum left a reply on BelongsToMany, But Only Sometimes

I don't know if this is the best way, but I think you can apply a condition on the relation.

return $this->belongsToMany('App\Post')->where('attribute', 'the required value);

I would be interested to know if there is a better way too.

jeffreyvanrossum started a new conversation Using Api:auth But Still Make Unauthenticated Route Available


Is it possible to make a API route available, both authenticated and not-authenticated?

I could of course remove the middelware on the specific route, and then apply some conditional logic in the controller. However, I'm using Auth::check to determine if someone is logged in. This will then always return false, because the request doesn't go through the api:auth middleware.

Basically, what I am trying to achieve:

Route::middleware('auth:api')->get('/posts', '[email protected]'); 
Route::get('/exercises', '[email protected]'); 

Any advice is appreciated!

14 Mar
4 months ago

jeffreyvanrossum left a reply on How Development Process Works After Production?

I deploy me changes with GitFTP-Deploy. You can basically commit your changes to production that way. Works good. One thing I still have to figure out, is how to go about running migrations and composer (vendor) updates. Ideally, when deploying php artisan migratie and composer update (not sure if that one is correct) are run.

03 Aug
1 year ago

jeffreyvanrossum left a reply on Login From External Website

Thanks Jestins!

I did end up doing it a bit differently, might very well be not the best solution, but anyway;

  • User successfully logs in at the WordPress-site.
  • Via my Laravel API there is a authentication token created and returned to WP.
  • WordPress redirects (with form submit) to Laravel and if token matches authentication is done.
  • Laravel redirects back to WordPress or stays at Laravel (depends on situation).

jeffreyvanrossum started a new conversation Login From External Website

Hello everyone,

I was wondering if it is possible to log into a Laravel application from a different website.

My situation is as follows;

Main website This is a WordPress website where users can subscribe on a couple of things including the Laravel application. They have a user account on this website.

Laravel application There is a overlap between the users in this application and in the main website. They have to login separately, but I did make it so that they can login with the same credentials. The application is hosted on a different server.

What I would like to achieve is that when a user logs in on the main website, it is automatically also logged in in the Laravel application.

Side note; I'm using a token based API but I can't seem to be able to log someone in through the API. Also; I'm not using Passport at this moment.

Hoping that someone here can point me in the right direction.

06 Oct
2 years ago

jeffreyvanrossum left a reply on How To Add Additional Functions To A Package

Thanks, especially @ahuggins. I tried your suggestions and got closer, but still errors (now the instance was missing the API-key) - so I got a bit tired of this package. I might very well have just used it wrong, however, I now use this one:

That was a lot easier to get working, at least, for me.

Now in my controller I can use it like this:

$campaigns =  Newsletter::getApi()->get('campaigns', [
        'count' => 10

Thanks again!

05 Oct
2 years ago

jeffreyvanrossum left a reply on How To Add Additional Functions To A Package

Thank you very much. I've done all that, I do get an error calling the functions from within a controller. Error is as follows: Non-static method App\Mailchimp::getCampagnes() should not be called statically, assuming $this from incompatible context

So apparently I can't use it like this Mailchimp::getCampagnes(10,'regular');.

Controller code:

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Http\Requests;

use App\Mailchimp as Mailchimp;

class CampagnesController extends Controller
    public function index() {
      return Mailchimp::getCampagnes(10,'regular');

jeffreyvanrossum left a reply on How To Add Additional Functions To A Package

I will give that a try @ahuggins. It sounds logical. How would you go about this?

Thank you both for answering!

jeffreyvanrossum started a new conversation How To Add Additional Functions To A Package


I'm using a MailChimp package for Laravel which does not contain a lot of functions. I would like to add a function to call campagnes for instance.

This is the package I'm referring to:

So basically, I would want to add some function called getCampagnes - but where would I do that? I can't just add the function inside the existing package, case that would cause problems later on.

That function would look like this I think:

public function getCampagnes($count,$type) {
      $campagnes = $this->callApi('get','campagnes', [
        'count' => $count,
        'type' => $type
      return $campagnes;

I appreciate the help!