phillipkregg

Member Since 2 Months Ago

Experience Points
12,120
Total
Experience

2,880 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
106
Lessons
Completed
Best Reply Awards
1
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 3
12,120 XP
Apr
12
3 weeks ago
Activity icon

Awarded Best Reply on Npm Run Build Not Found

I'm not familiar with Laragon, but it looks like it's using node version 12... Node is currently using 14.16.1 as it's current LTS.

Could it be that the Laragon version you are using may need to be updated to a newer version?

...

Also, build is usually tied to a webpack config file. Are you using React or something that needs to have a build process with webpack/babel or something?

App.tsx is a TypeScript file. It's generally the entry point to a single page app that is built with something like React and written with TypeScript instead of regular JavaScript.

Activity icon

Replied to Npm Run Build Not Found

Ok, according to the instructions, the command npm run build can be used to build the source for videojs-youtube locally... but, you don't have to do that.

Just install it with npm install videojs-youtube

Activity icon

Replied to Npm Run Build Not Found

If you don't have any type of webpack configuration setup, then it's probably better to just use the "Quick Start" guide in the video players docs.

<link href="//vjs.zencdn.net/7.10.2/video-js.min.css" rel="stylesheet">
<script src="//vjs.zencdn.net/7.10.2/video.min.js"></script>

Just adding that will get you access to the video player's API.

If this is a Laravel 8 app, you should be able to just add the NPM package to your devDependencies and run:

npm run dev

You shouldn't need npm run build

Activity icon

Replied to Npm Run Build Not Found

I'm not familiar with Laragon, but it looks like it's using node version 12... Node is currently using 14.16.1 as it's current LTS.

Could it be that the Laragon version you are using may need to be updated to a newer version?

...

Also, build is usually tied to a webpack config file. Are you using React or something that needs to have a build process with webpack/babel or something?

App.tsx is a TypeScript file. It's generally the entry point to a single page app that is built with something like React and written with TypeScript instead of regular JavaScript.

Activity icon

Replied to React Route Is Not Working In Laravel React Scaffold Project

Are you wrapping your routes in a "switch" component?

Like this:

import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter, Route, Switch } from 'react-router-dom'
import PageOne from './PageOne';
import PageTwo from './PageTwo';

ReactDOM.render(
  <React.StrictMode>
    <BrowserRouter>
      <Switch>
        <Route exact path="/" component={PageOne} />
        <Route exact path="/page2" component={PageTwo} />
      </Switch>
    </BrowserRouter>
  </React.StrictMode>,
  document.getElementById('root')
);
Apr
11
4 weeks ago
Activity icon

Commented on Value Objects And Mutability

4:00 into the video was a "lightbulb moment" for me.

I've always known that having internal state that was marked "public" is usually bad practice, but this really illustrates why it's bad in a way that is totally practical and I hadn't really thought about before.

Bravo!

Apr
07
1 month ago
Activity icon

Started a new Conversation VSCode - Emmet Shortcuts VS Blade Prettification - Can I Have Both?

I am using VSCode and can't seem to find a way within the settings.json file to allow me to use both emmet and blade templates together.

Here's my settings

If my "files.associations" contains "*.blade.php": "blade" - then my blade formatter works. So if I paste in some code and press "save" then it reformats and prettifies my file.

But, if type "div" and press tab, VSCode tries to create Icon elements instead of divs with the classes that I add to them.

To fix this, I have to comment out the "*.blade.php": "blade" file association, and instead add "blade": "html" to my "emmet.includeLanguages".

This allows my Emmet commands to work, but breaks my autoformat - prettifier - in Blade.

Is there someway to have both of these work at the same time without breaking each other?

Mar
22
1 month ago
Activity icon

Commented on A User May Respond To Threads

App\Models\Reply is a single instance of a Reply.

Illuminate\Database\Eloquent\Collection is Laravel's generic collection class.

We want to check for a collection of Replies, so the generic collection is used as a test.

Activity icon

Commented on A User May Respond To Threads

Try this:

    {
        $this->be($user = factory('App\User')->create());

        $thread = factory('App\Thread')->create();
        $reply = factory('App\Reply')->make();

        $this->post($thread->path() . '/replies', $reply->toArray());

        $this->get($thread->path())->assertSee($reply->body);
    }
Mar
21
1 month ago
Activity icon

Commented on A Thread Can Have Replies

I'm using the same version of Laravel as in this course - 5.4.* - but when I add the test for replies, it never runs.

Then, I noticed in the video that there is a comment above each test: /** @test */

When I added this, the replies test started working.

Is this a feature of phpunit? Does it actually look for this comment on every test?

Mar
20
1 month ago
Activity icon

Commented on Test-Driving Threads

I'm on a Macbook and running the same github codebase as the video - Laravel 5.4.* - and running phpunit does not work for me.

However, running ./vendor/bin/phpunit does work.

If I run phpunit I get this error:

argument 1 passed to PHPUnit\Runner\TestSuiteSorter::reorderTestsInSuite() must be an instance of PHPUnit\Framework\Test, instance of PHPUnit\Framework\TestSuite given, called in /Users/phillipkregg/.composer/vendor/phpunit/phpunit/src/TextUI/TestRunner.php on line 210

Mar
06
2 months ago
Activity icon

Commented on Laravel Facades Demystified

At 5:54, Jeffrey goes to the Illuminate/HTTP/Request definition, but it ends up taking him to Illuminate/HTTP/Concerns/InteractsWithInput

I'm using VSCode and it seems to stop the drilling at Illuminate/HTTP/Request. So I'm not seeing how there is a direct path to the Concerns/InteractsWithInput.

Is this a feature of PHP Storm only? How else would I know to go to the Concerns folder?

Feb
26
2 months ago
Activity icon

Commented on Attach And Validate Many-to-Many Inserts

Good catch... I ran into the same thing

Feb
22
2 months ago
Activity icon

Commented on Basic Eloquent Relationships

All of them... all the lessons