2016-04-02 185 views
1

我只是更新撰寫,我發現下面的錯誤。Laravel作曲家更新給出錯誤

php artisan clear-compiled PHP Fatal error: Call to undefined method Illuminate\View\Compilers\BladeCompiler::directive() in /var/www/html/innomaid/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php on line 213

[Symfony\Component\Debug\Exception\FatalErrorException]
Call to undefined method Illuminate\View\Compilers\BladeCompiler::directive()

腳本PHP工匠明確編譯處理更新後的CMD事件與錯誤

[RuntimeException]
Error Output: PHP Fatal error: Call to undefined method Illuminate\View\Compilers\BladeCompiler::directive() in /var/www/html/innomaid/ve
ndor/laravel/framework/src/Illuminate/Support/Facades/Facade.php on line 213

這回是我的作曲家代碼

{ 
    "name": "laravel/laravel", 
    "description": "The Laravel Framework.", 
    "keywords": ["framework", "laravel"], 
    "license": "MIT", 
    "type": "project", 
    "require": { 
     "laravel/framework": "5.0.*", 
     "illuminate/html": "5.*", 
     "barryvdh/laravel-dompdf": "0.6.*", 
     "tymon/jwt-auth": "0.5.*", 
     "gloudemans/shoppingcart": "~1.3", 
     "intervention/image": "^2.3" 

    }, 
    "require-dev": { 
     "phpunit/phpunit": "~4.0", 
     "phpspec/phpspec": "~2.1", 
     "zizaco/entrust": "dev-laravel-5" 
    }, 
    "autoload": { 
     "classmap": [ 
      "database" 
     ], 
     "psr-4": { 
      "App\\": "app/" 
     } 
    }, 
    "autoload-dev": { 
     "classmap": [ 
      "tests/TestCase.php" 
     ] 
    }, 
    "scripts": { 
     "post-install-cmd": [ 
      "php artisan clear-compiled", 
      "php artisan optimize" 
     ], 
     "post-update-cmd": [ 
      "php artisan clear-compiled", 
      "php artisan optimize" 
     ], 
     "post-create-project-cmd": [ 
      "php -r \"copy('.env.example', '.env');\"", 
      "php artisan key:generate" 
     ] 
    }, 
    "config": { 
     "preferred-install": "dist" 
    } 
} 

請幫我解決這個錯誤

+0

嘗試改變「illuminate/html」:「5. *」,用這個「laravelcollective/html」:「〜5.0」,並讓我知道 –

+0

ohk我會試試。 – Tarzan

+0

#maytham-ɯɐɥʇʎɐɯ不工作。 – Tarzan

回答

1

更新"zizaco/entrust": "dev-laravel-5""zizaco/entrust": "1.4.1"

解決我的問題。

+0

將其檢查爲已回答 –