It was suggestedパブリックフォルダのindex.php
を変更してください。
*
|--------------------------------------------------------------------------
| Turn On The Lights
|--------------------------------------------------------------------------
|
| We need to illuminate PHP development, so let us turn on the lights.
| This bootstraps the framework and gets it ready for use, then it
| will load up this application so that we can run it and send
| the responses back to the browser and delight our users.
|
*/
$app = require_once __DIR__.'/../bootstrap/app.php';
// set the public path to this directory
$app->bind('path.public', function() {
return __DIR__;
});
今すぐあなたの公共 ディレクトリが変更されたときに、あなたの公開パスを変更する必要がいけません。
エリクシールにはパブリックパスがハードコードされています。変更された のパブリックパスをElixir設定で設定することを忘れないでください。
新しいパブリックパスに既定のパブリックパスと同じアクセス許可が設定されていることを確認する必要があります。 config/filesystem.php
のパブリックパスを変更することもできます。
私はasset()を使用してjs/cssのソースをインクルードします。 私はこれを次のhttp://stackoverflow.com/a/29716810/5071013 とelixir()に変更アセット()はまだ動作しません – GaoEy
私は私のXAMMPのプロブレムを持っています。 – GaoEy