bug fix
This commit is contained in:
		@@ -47,13 +47,13 @@ class ScrapeMihaaruCommand extends Command
 | 
			
		||||
        foreach ($articles as $article) {
 | 
			
		||||
 | 
			
		||||
            // Attach the relationship between source and article and return the curren article instance
 | 
			
		||||
            $articleModel = $source->articles()->firstOrCreate([
 | 
			
		||||
            $articleModel = $source->articles()->firstOrCreate(["guid" => $article["guid"]],
 | 
			
		||||
                [
 | 
			
		||||
                "title" => $article["title"],
 | 
			
		||||
                "url" => $article["url"],
 | 
			
		||||
                "author" => $article["author"],
 | 
			
		||||
                "featured_image" => $article["image"],
 | 
			
		||||
                "body" => $article["content"],
 | 
			
		||||
                "guid" => $article["guid"],
 | 
			
		||||
                "published_date" => $article["date"],
 | 
			
		||||
                "meta" => [
 | 
			
		||||
                    "title" => $article["og_title"]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user