Update existing and thiladhun date fix
This commit is contained in:
		| @@ -48,7 +48,7 @@ class ScrapeSunCommand 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()->updateOrCreate( | ||||
|                 ["guid" => $article["guid"]], | ||||
|                 [ | ||||
|                     "title" => $article["title"], | ||||
|   | ||||
		Reference in New Issue
	
	Block a user