jhull

jhull

Member Since 2 Years Ago

Experience Points
8,420
Total
Experience

1,580 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
77
Lessons
Completed
Best Reply Awards
0
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.

Level 2
8,420 XP
Apr
17
2 months ago
Activity icon

Started a new Conversation Running Additional Logic When Saving To Model

I have a Model that takes a handful of information, generates a new set of information based on that data, and then saves both the original set and the second set to a single row (spread across multiple columns) in the database.

Previously, I put all that secondary logic in the Controller—but recently read of “thin” controllers and “fat” models. Thinking the Model a set of relationships, accessors, and mutators, where do I put this logic to create the secondary set of data?

Feb
13
4 months ago
Activity icon

Started a new Conversation Speeding Up Laravel Vapor API Calls

Same exact code on DO server usually runs < 200ms. Same code on Laravel Vapor is somewhere between 600ms and 800ms.

What's the best way to speed up response time with Vapor?

Feb
10
5 months ago
Activity icon

Replied to Redirect On SPA After Laravel Airlock Login

Ugh...I was just using:

Auth::routes(['verify' => true]);

Once I made my own, and just returned the user...works fine now.

Activity icon

Replied to Redirect On SPA After Laravel Airlock Login

Hmmm. I already had those attached elsewhere:

headers:
Accept: "application/json, text/plain, */*"
Content-Type: "application/json;charset=utf-8"

This is the log from the axios request...

Feb
09
5 months ago
Activity icon

Started a new Conversation Redirect On SPA After Laravel Airlock Login

ALMOST got this all figured out...

SPA is on spa.app.localhost:8888 Laravel API is on api.app.localhost

While in the SPA I call a successful login:

      async login() {
          console.log('login attempt')
          await this.$axios.get('/airlock/csrf-cookie');
          await this.$axios.post('/login', { email: this.account.email, password: this.account.password }).then(resp => {
            console.log('success login')
            this.$router.push({name: 'dashboard'})
          })
      },

I get the CSRF token. And I get the successful Login (subseq. URLs in the SPA work great...)

BUT, for some reason, Laravel is trying to redirect me and I get this error:

Access to XMLHttpRequest at 'https://api.app.localhost/home' (redirected from 'https://api.app.localhost/login') from origin 'http://spa.app.localhost:8888' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

In my CORS I have :

'allowed_origins' => [
    'http://spa.app.localhost',
    'https://api.app.localhost'
]

Any idea what is going on here?

Jan
22
5 months ago
Activity icon

Replied to Laravel + Nuxt

Were you ever able to figure this out? Looking to do the same

Activity icon

Replied to Nuxt SSR + Laravel API Nginx Conf Advice

Were you ever able to figure this stack out?