techguy92

techguy92

Member Since 11 Months Ago

Experience Points 1,470
Experience
Level
Lessons Completed 12
Lessons
Completed
Best Reply Awards 0
Best Answer
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

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

11 May
8 months ago

techguy92 left a reply on Function Used By __construct($val) Not Being Mocked

I'm going to make a test Object that extends the original object to test the other functions, by prepopulate the origin data.

techguy92 started a new conversation Function In __construct($val) Not Being Mocked

I'm new to Testing and mocking. I need help on how to mock particular functions in my __construct class for one of my objects. These functions pull data from a database and return values to populate object properties.

Here is what I have

$testResponse = (object)[
            'name' => 'LISD TEST Event',
            'description' => 'LISD Test Event',
            'beginDate' => '2018-05-04',
            'orgCode' => '014',
        ];

        $event = Mockery::mock(Event::class, [self::TEST_EVENT_ID])->makePartial();
        $event->shouldAllowMockingProtectedMethods();
        $event->shouldReceive('getCampusName')
            ->with('014')
            ->atLeast(1)
            ->andReturn('LHS Harmon');
        $event->shouldReceive('getEventInformation')
            ->with(self::TEST_EVENT_ID)
            ->atLeast(1)
            ->andReturn($testObject);

But instead of mocking the functions, I get the data from the database and not the data from my $testResponse. Am I doing this all wrong or what am I missing to get this to retrieve the data from the mocked functions instead of the pulling from the actual database

06 Apr
9 months ago
27 Mar
9 months ago

techguy92 started a new conversation Best Practices For Separation

Is there any particular reason or a best business practice recommendation on if or when should one should separate their <template> or <style> to their own files rather than keep them with their respected .vue file

13 Feb
11 months ago

techguy92 started a new conversation BBP For Routes

What is the best way to write Routes? With a closure or directing towards a controller

08 Feb
11 months ago

techguy92 left a reply on Mailable: Using 0 Possible Authenticators

@bobbybouwmann, you are correct. Sorry I posted that really quick and had to do something else. I selected your answer as the correct one. the configuration was wrong.

07 Feb
11 months ago

techguy92 left a reply on Mailable: Using 0 Possible Authenticators

We figured it out. The configuration I was given was incorrect. Supposedly I was trying to be too secure for my own e-mail server. nulled username, password, and encryption and it worked just fine

06 Feb
11 months ago

techguy92 left a reply on Mailable: Using 0 Possible Authenticators

@bobbybouwmann, I'm positive the credentials are correct

05 Feb
11 months ago

techguy92 left a reply on Mailable: Using 0 Possible Authenticators

@bobbybouwmann it is a valid SMTP host. My question is how to set up authenticators because it comes back with "Unable to validate user: using 0 authenticators

02 Feb
11 months ago

techguy92 left a reply on Mailable: Using 0 Possible Authenticators

This is my mail config in my .env

MAIL_DRIVER=smtp
MAIL_HOST=o365relay.lisd.local
MAIL_PORT=25
[email protected]
MAIL_PASSWORD=myPassword
MAIL_ENCRYPTION=tls
[email protected]
MAIL_FROM_NAME=Logan

changed some of the information for security purposes

techguy92 started a new conversation Mailable: Using 0 Possible Authenticators

How do you set up authenticators for SMTP Mailable?