2015-04-15 51 views
-3

語法錯誤,意外'aws_account.aws_account_id「」(T_CONSTANT_ENCAPSED_STRING)我碰到下面的錯誤,但我看不出有什麼不妥:解析錯誤:在項目

Parse error: syntax error, unexpected ''aws_account.aws_account_id'' (T_CONSTANT_ENCAPSED_STRING) in C:\xampp\htdocs\laravel\awsconfig\app\controllers\CRUDController.php on line 11

我加入聲明的地方被拋出的錯誤:

$query = DB::table('ec2_instance')->join('aws_account', 'aws_account.id', '=', 'ec2_instance.id')->select('ec2_instance.instance_id', 'ec2_instance.public_dns_name', 'ec2_instance.key_name','ec2_instance.instance_type','ec2_instance.launch_time',‌​'aws_account.aws_account_id')->get(); 
+0

看起來更像是'where()'的語法,而不是'join()'的代碼。 –

+0

此代碼不會產生該錯誤。你有沒有發佈正確的路線? –

回答

3

你最後,'之間有一些垃圾字符有