regal2157

regal2157

Member Since 4 Years Ago

Experience Points 22,020
Experience Level 5

2,980 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 242
Lessons
Completed
Best Reply Awards 1
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.

31 Dec
6 months ago

regal2157 left a reply on Brew Install PHP 7.2 Instead Of 7.3

For the preg_match exception, check out this SO page: https://stackoverflow.com/questions/53690624/errors-installing-composer-on-macos-jit-compilation-failed

Seems like you can easily disable the PCRE

23 Dec
6 months ago

regal2157 left a reply on Firefox Input Type="number" Not Working ToFixed()

It's with Firefox handling the number input. I tried doing some workarounds like setting the step attribute to "0.01" and "any" with no luck. If you change the input to text, it'll update. Maybe you'll have some luck with the step attribute.

22 Dec
6 months ago

regal2157 left a reply on Execute Artisan Vendor:publish Programmatically

It's working, but the issue is it'll only publish the files via the cli. There is a check to make sure the app is running in the console before it tries to publish the files.

17 Dec
7 months ago

regal2157 left a reply on Unlocking Badges Workshop Help Needed

I believe that's the actual laracasts code base - he briefly shows it is linked up to his Experience Model (3:06 in first episode). It's up to you if you want to set up an environment where you have the forum_experience table that'll store the points, or another method.

regal2157 left a reply on LetsEncrypt Installed Through Laravel Forge Causes Safari/iPhone Timeout From Iran

Does Iran still block HTTPS traffic? I'm not too familiar with their firewall, but you can utilize tools like https://viewdns.info/iranfirewall

As others have said, site looks operational. HTTPS works find on an iPhone where I am.

16 Dec
7 months ago

regal2157 left a reply on Problems With Translation Of Query To Eloquen

DB::table('usuarios')
    ->select('usuario_id', DB::raw('count(nombre) as nombre')
    ->group_by('usuario_ad')
    ->order_by('nombre', 'desc')
    ->get();

I didn't test it, but something like that?

13 Dec
7 months ago

regal2157 left a reply on Flarum Project

It seems the docs page was taken down for this.

Here is the old page with some info on extending it. Besides that - if you want to check out the core, it's under vendor/flarum/core. https://raw.githubusercontent.com/flarum/docs/gh-pages/extend/start.html

regal2157 started a new conversation Console Test Failing To Test In Order?

I'm running through https://laracasts.com/series/whats-new-in-laravel-5-7/episodes/3 and my testing results don't line up...

It appears the assertDatabaseHas assertion takes priority over expectsQuestion.

tests/Feature/Console/MakeUserCommandTest.php

function it_generates_a_new_user()
    {
        $this->artisan('make:user')
            ->expectsQuestion('What name should we use?', 'John Doe')
            ->expectsQuestion('And the email address?', '[email protected]')
            ->expectsQuestion('And the password?', 'password')
            ->expectsOutput('The user John Doe has been created')
            ->assertExitCode(0);

        $this->assertDatabaseHas('users', ['name' => 'John Doe']);
    }

routes/console.php

Artisan::command('make:user', function() {
});

I should see the test fail because no question was asked, but I'm getting an fail for the database not having the user.


There was 1 failure:

1) Tests\Feature\Console\MakeUserCommandTest::it_generates_a_new_user
Failed asserting that a row in the table [users] matches the attributes {
    "name": "John Doe"
}.

The table is empty.

Am I missing something? If I comment out the assertDatabaseHas I can see the error for the question not asked..

Thanks!