kakallatt

kakallatt

Member Since 5 Years Ago

Experience Points
17,210
Total
Experience

2,790 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
272
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 4
17,210 XP
Aug
08
1 month ago
Activity icon

Replied to Spatie Crawler: Some Links Always Return 503 Error On Production

It returns

Resolving www.amazon.com (www.amazon.com)... 23.198.171.240
Connecting to www.amazon.com (www.amazon.com)|23.198.171.240|:443... connected.
HTTP request sent, awaiting response... 503 Service Unavailable
2020-08-09 02:17:19 ERROR 503: Service Unavailable.

Do you know the reason?

Activity icon

Started a new Conversation Spatie Crawler: Some Links Always Return 503 Error On Production

I run a crawler on my website and there are some links from Amazon that always return 503 code on production, but they return 200 in my local machine. Does anyone have any ideas on this issue? Is the problem from my server IP or something?

Some links:

https://www.amazon.com/dp/B00SZB0BXC
https://www.amazon.com/dp/B01BFKIJ06
https://www.amazon.com/dp/B005H8C4ZE

Here is the code of crawler

/**
 * @var array
 */
protected static array $clientOptions = [
    RequestOptions::COOKIES         => true,
    RequestOptions::CONNECT_TIMEOUT => 10,
    RequestOptions::TIMEOUT         => 10,
    RequestOptions::ALLOW_REDIRECTS => true,
    RequestOptions::HEADERS         => [
        'User-Agent' => '*',
    ],
];


Crawler::create(static::$clientOptions)
            ->setCrawlProfile(new CustomProfile($this->website))
            ->setCrawlObserver(new LinkCrawler($this->website))
            ->setParseableMimeTypes(['text/html', 'text/plain'])
            ->setMaximumResponseSize(1024 * 1024 * 3)
            ->startCrawling($this->website->url);
May
20
4 months ago
Activity icon

Replied to SSL For Alias Domains

Anyone can help me???

Activity icon

Replied to Multiple SSL Certs With Forge

I am finding the solution for that too. Did you find the solutions yet?

May
19
4 months ago
Activity icon

Started a new Conversation SSL For Alias Domains

I am building a SaaS app. I already installed wildcard subdomain for my site (domain.com and *.domain.com). However, when my customers want to use their domains, for example: domain2.com. How can I obtain LetsEncrypt for domain2.com?

Thank you!

Apr
20
5 months ago
Activity icon

Started a new Conversation Laravel Eloquent Sum On Realtions

I try to sum the original_total column of order_items table from orders table. Relationship: Order has many order_items

....
$total[ $from->format('Y-m') ] = Order::whereBetween(
    'created_at', [$cloneFrom->startOfMonth()->toDateTimeString(), $cloneFrom->endOfMonth()->toDateTimeString()]
)->withCount(['orderItems as original_total' => function ($query) {
    $query->select(DB::raw('sum(original_total)'));
}])->sum('original_total');
....

I got this error:

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'original_total' in 'field list' (SQL: select sum(`original_total`) as aggregate from `orders` where `created_at` between 2019-01-01 00:00:00 and 2019-01-31 23:59:59)

Then, I use get before sum, it worked but it generated too many queries and slow down my application. Is there any way to calculate the sum without use get method?

Apr
03
5 months ago
Activity icon

Replied to Laravel API: Request Is Not Finished Yet

It doesn't throw anything. Just a pending request :(. Here is the error I get from Ngnix error log:

2020/04/04 09:01:39 [error] 17576#0: *7 upstream timed out (60: Operation timed out) while reading response header from upstream, client: 127.0.0.1, server: , request: "GET /nova-vendor/order/are$
Activity icon

Started a new Conversation Laravel API: Request Is Not Finished Yet

This is my first time to create an API in Laravel. I created 2 laravel apps in my Valet server (1st app is API and 2nd is the consumer).

Here is the code for API:

api.php

<?php

use Illuminate\Support\Facades\Route;

Route::get('areas/provinces', 'Api\[email protected]');

I just return a random data in AreasController

/**
 * Get all provinces.
 *
 */
public function getProvinces()
{
    return response()->json(['something'=> []]);
}

The consumer code:

<?php

use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\Http;
use GuzzleHttp\Client;

Route::get('/', function () {
    $response = Http::get('http://api.test/api/areas/provinces');

    return $response->json();
});

It was just loading forever. When I checked in the Chrome developer tool, it said "Request is not finished yet". I did try to use GuzzleHttp library instead of Http Client of Laravel 7, but it didn't work either. However when I test with curl or Postman, it works well.

Thank you!