WebKenth

WebKenth

Web Developer at Wexo A/S

Member Since 3 Years Ago

Aalborg

Experience Points
67,780
Total
Experience

2,220 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
404
Lessons
Completed
Best Reply Awards
43
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.

Level 14
67,780 XP
Apr
23
5 months ago
Activity icon

Replied to How To Use Api_token

@EMFPC - if you read the https://laravel.com/docs/5.8/authentication#adding-custom-guards you would find that you can add your own guarding policies and check for the token. Since you are not using the built in api_token feature with the Auth middleware you have to implement that logic your self

Activity icon

Replied to Create A Package Based On Another Library

You could always move the logic till you actually need it.

How do you want the user to use your Api instance?

ex: heres an Api that fetches all orders

Api::orders()->get();

in the orders() function you could add the logic when you dispatch the request

public function orders(){
    $config = config('api.config');
    $api = self::create($config['token'],$config['key'],$config['sandbox']);
    $response = $api->dispatch();
    return collect($response);
}
Activity icon

Replied to Prevent Making Request For The Same Image Multiple Times

Depending on how you use the image in your javascript if the link to the image is the same the browser will handle it ( check you dev tools network log and notice that the image is only fetched once, as long as it is the same content from the url )

If you use v-if with vue the image will load multiple times each time you toggle the conditional however the browser will still have the image cached.

Activity icon

Replied to How Do E-commerce Orders Process Work When Checkout?

Most e-Commerce systems have a temporary order object sometimes reffered to as a Quote which could be considered the cart. this contains all the information needed to create an actual order.

Some payment systems however require an actual order_id before a transaction can be made so some e-commerce systems will actually be forced to create an incomplete order and await the client input ( usually they have a timeout of 30-60 minutes before they cancel / delete the order in order to clean up after customers who close their payment gate too early )

You could take a look at Magento and see how they do it https://omsdocs.magento.com/en/getting-started/order-flow/

They have an extensive knowledge though their codebase is abit jerky compared to more modern shop frameworks like shopify and shopware

Activity icon

Replied to Ajax Response "Malformed UTF-8 Characters, Possibly Incorrectly Encoded"

Just out of curiosity why don't you just return $properties;? The controller will automatically transform your data to JSON and since you are not modifying the Response in any way ( like adding a different status) there's really no need to make one