3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Laravel「くっ。X-Serverのエントリポイントはpublic_htmlだと…」

Posted at

Laravel「エントリポイント変えたろ」

app/Providers/AppServiceProvider.php
public function register()
{
   // set the public path to this directory
   $this->app->bind('path.public', function() {
     return base_path().'/public_html';
   });
}
server.php
// require_once __DIR__.'/public/index.php';
if ($uri !== '/' && file_exists(__DIR__.'/public_html'.$uri)) {
    return false;
}

require_once __DIR__.'/public_html/index.php';
webpack.mix.js
mix.setPublicPath('public_html/')

Laravelのバージョンについて

バージョンは8系です。ご了承ください。

参考リンク

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?