BennyWalden

BennyWalden

Member Since 2 Years Ago

Experience Points 8,670
Experience Level 2

1,330 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 85
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • 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.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    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.

09 May
3 months ago

BennyWalden left a reply on Python Function Failing In PHP Exec()

@DIEGOAURINO - The host is Windows 10, and the Homestead box is running through Virtualbox.

I've checked the user that exec() uses and it is "vagrant", which is the same user that I log in as through the terminal, and the script has execute privileges.

The error log indicates that python can't determine os.environ["PATH"] and throws a KeyError which makes me think it is a PATH issue but I don't understand why running it through my terminal would work when it's logged in as the same user.

08 May
3 months ago

BennyWalden started a new conversation Python Function Failing In PHP Exec()

I am running Laravel Homestead 5.7. have a command script for a python program which runs perfectly when I execute it through the terminal, however when I enter the command into php's exec function, it always fails.

I believe it might have something to do with the wrong version of python being called at runtime. I can run "python --version" in my terminal, which gives me version 2.7, however in php's exec function, it just returns a blank line.

Does anyone know why this could be happening?

13 Aug
1 year ago

BennyWalden left a reply on Laravel Passport Error: "Unable To Determine Authentication Model From Configuration"

The provider returns 'users' and the model returns null.

BennyWalden started a new conversation Laravel Passport Error: "Unable To Determine Authentication Model From Configuration"

I am trying to integrate Laravel Passport into an existing project. I have followed the instructions as per the passport docs, but when trying to connect to the API using Postman, I am getting a server 500 error with the error message "Unable to determine authentication model from configuration.".

I have done some digging into Passport's UserRepository class where the getUserEntityByUserCredentials method is being called, and it looks like the authentication model ($model) is being returned as null every time.

Does anyone know why this might be happening? My User class has a custom table name which I've set under the $table variable, but the database table still uses email and password fields so nothing out of the ordinary here.

Any help would be much appreciated!

25 Oct
1 year ago

BennyWalden started a new conversation Constraining Main Laravel Query By Its Eager-loaded Relationship

I have an eloquent model (Tenancy) which has a one-to-many relationship with a model 'RentPeriod', and I am trying to perform (with Eloquent) the equivalent of a left join to return a single record (and single field) from the 'RentPeriods' table, with which I can then filter the outer query.

Basically, the RentPeriods table has a "due_date" field, which I would like to use in a where clause on the main query below

$tenancies = Tenancy::with(['rent_periods' =>

function ($query) {

        $query->select('tenancy_id', 'due_date')
            ->where('due_date', '>=', $today)
            ->orderBy('id', 'asc');

    }])
    

        ->where('due_date', '>', $today)
        ->paginate(20);

Does anyone know how I can get this to work?