2016-02-08 24 views
0

我正在使用Laravel 5.1處理項目,並試圖實現Facebook API。由於我使用的:在作曲家需要後,ResetsPasswords.php中的FatalErrorException需要facebook php-sdk-v4

composer require facebook/php-sdk-v4  

我在每一頁上的ResetsPasswords.php錯誤:

FatalErrorException in ResetsPasswords.php line 21: syntax error, unexpected '}' 

ResetsPasswords.php工作正常,並沒有在所有的任何錯誤。 18-21行:

public function getEmail() 
{ 
    return view('auth.password') 
} 

我試圖刪除Facebook包。現在它告訴我在CMD中的以下信息:

Warning: This development build of composer is over 60 days old. It is recommended to update it by running "C:\ProgramData\ComposerSetup\bin\composer.phar self-update" to get the latest version. 
> php artisan clear-compiled 

[Symfony\Component\Debug\Exception\FatalErrorException] syntax error, unexpected '}' 

Script php artisan clear-compiled handling the pre-update-cmd event returned with an error 

[RuntimeException] 
Error Output: 

remove [--dev] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] [<packages>]... 

我想它有一些應該與我的作曲家版本。但是我對作曲家並不是很有經驗,在我真的弄糟它之前,我認爲尋求一些幫助是不明智的。

所以,我真的很感激你的幫助,因爲我不能在項目上工作,直到這個問題得到解決。

回答

0

你忘記;

return view('auth.password'); 
+0

哇,好像它是不是在所有工作..謝謝 – APRZ