Update (test routes)
This commit is contained in:
@@ -23,19 +23,19 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
Route::get('/news_serp', function () {
|
Route::get('/news_serp', function () {
|
||||||
$category = Category::find(1);
|
$category = Category::find(2);
|
||||||
$news_serp_result = GetNewsSerpTask::handle($category, 'US');
|
$news_serp_result = GetNewsSerpTask::handle($category, 'US');
|
||||||
dd($news_serp_result);
|
dd($news_serp_result);
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::get('/news_serp_parse', function () {
|
Route::get('/news_serp_parse', function () {
|
||||||
$news_serp_result = NewsSerpResult::find(1);
|
$news_serp_result = NewsSerpResult::find(2);
|
||||||
$serp_urls = ParseNewsSerpDomainsTask::handle($news_serp_result);
|
$serp_urls = ParseNewsSerpDomainsTask::handle($news_serp_result);
|
||||||
dd($serp_urls);
|
dd($serp_urls);
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::get('/write_article', function () {
|
Route::get('/write_article', function () {
|
||||||
$serp_url = SerpUrl::find(1);
|
$serp_url = SerpUrl::find(2);
|
||||||
$task = GenerateArticleJob::dispatch($serp_url)->onQueue('default')->onConnection('default');
|
$task = GenerateArticleJob::dispatch($serp_url)->onQueue('default')->onConnection('default');
|
||||||
|
|
||||||
dd($task);
|
dd($task);
|
||||||
|
|||||||
Reference in New Issue
Block a user