2013-06-03 57 views
0

我不太確定爲什麼會發生這種情況。我能夠生成:沒有問題的種子,但當我做任何遷移時,我都會收到如下所示的相同錯誤。Laravel 4 generate:migration錯誤

php artisan generate:migration create_Post_table --fields="title:varchar, body:text" 

Generating optimized class loader 
Compiling common classes 
{"error":{"type":"ErrorException","message":"fopen(\/Applications\/MAMP\/htdocs\/DRCSports\/bootstrap\/compiled.php): failed to open stream: Permission denied","file":"\/Applications\/MAMP\/htdocs\/DRCSports\/vendor\/classpreloader\/classpreloader\/src\/ClassPreloader\/Command\/PreComp 
+2

你有''bootstrap'目錄的可寫權限嗎? –

+0

drwxrwxr-x @ 6 rachaelhill admin 204 Jun 3 14:05 bootstrap – Rachael

+1

我明白了!謝謝,這不是我在bootstrap上的權限,而是我的引導文件夾中的complied.php。 – Rachael

回答

0

確保您有可寫權限的同時bootstrap目錄和文件compiled.php