I am getting the following error and I just cant find the solution to the problem. Might be anyone be able to help me?
DB::table('videos')->insert(
['video_id' => $videos[$i]->title],
['url'] => $videos[$i]->url],
['default_thumb'] => $videos[$i]->default_thumb],
['thumb'] => $videos[$i]->thumb],
['publish_date'] => $videos[$i]->publish_date],
['tags'] => $videos[$i]->tags]
);
The error message is:
FatalErrorException in VideoController.php line 33:
syntax error, unexpected '=>' (T_DOUBLE_ARROW)