TheMorgz

TheMorgz

Member Since 3 Years Ago

Experience Points 15,810
Experience Level 4

4,190 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 152
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.

03 Jan
6 months ago

TheMorgz left a reply on How To Decode Json Array

Hi @ziben69

Are you perhaps not looking for:

http://php.net/manual/en/function.json-decode.php


$someVar = json_decode($results, true));

This would give you an array which is easier to use for "for-each" syntax...

Hope this helps.

01 Jan
6 months ago

TheMorgz left a reply on Delete Button In SPA

@BELLINI - Hey man.

I don't know what kind of SPA you're developing, but I would suggest using VueJS or jQuery to perform some sort of AJAX or Axios post without redirecting the form.

Use a v-on or @click on the element and then invoke a function with the ID as a parameter.

That's how I'd do it.

TheMorgz left a reply on Delete Button In SPA

Hey @bellini

Why don't you use an a href link that uses the same class as the button?

For example:


@foreach ( $trackers as $list )

<ul>

  <li> {{$list->coin}} : {{ $list->value_entered }} ( amount:{{ $list->amount }} ) <a href="/some/place/{{ $list->id }}" class="btn btn-outline-secondary">Delete</a> </li> 

</ul>
    
@endforeach

You could also handle the click using VueJS or even jQuery. It's up to you.

This is how I'd do it.

Please let me know if this helps you.

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

Hi @thavarshan,

Because I went with php 7.3, this is the output I get below:

Configuration File (php.ini) Path: /usr/local/etc/php/7.3
Loaded Configuration File:         /usr/local/etc/php/7.3/php.ini
Scan for additional .ini files in: /usr/local/etc/php/7.3/conf.d
Additional .ini files parsed:      /usr/local/etc/php/7.3/conf.d/ext-opcache.ini,
/usr/local/etc/php/7.3/conf.d/php-memory-limits.ini

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

Hi @thavarshan

I ran into a similar issue last week.

This is what I did, and I hope this works for you.

Download the following script: https://gist.github.com/dannygsmith/5b74ba708d7bf8621c1cb6b959ece99f/

Run in.

Then do the following steps below.

Update homebrew & upgrade

brew update
brew upgrade

Install php

brew install [email protected]

Install the required PHP to your PATH

echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.bash_profile
echo 'export PATH="/usr/local/opt/[email protected]/sbin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile

Then make sure it's all working

php --version

This command will show you where your ini file is loaded

php --ini

However, I got my valet setup to work with PHP 7.3 using the same steps. So I think it should work if you follow the same steps.

Goodluck, and please let me know if this at least guides you on the right path.

TheMorgz left a reply on Mailable To() Error In Production

Hi @bufferoverflow ,

I'd suggest that you dd() on $recepient and check what it returns.

protected function setAddress($address, $name = null, $property = 'to')
{
    foreach ($this->addressesToArray($address, $name) as $recipient) {
            
        $recipient = $this->normalizeRecipient($recipient);

        ### dd($recipient); 
 
            $this->{$property}[] = [
                'name' => $recipient->name ?? null,
                'address' => $recipient->email, // i guess the problem is here
            ];
        }
 
        return $this;
}

I'm not sure what your normalizeRecipient() does - but you should check what kind of data it returns. This will be the first step to breaking the problem down.