Skip to content

Instantly share code, notes, and snippets.

@alibo
Last active June 19, 2016 17:26
Show Gist options
  • Save alibo/32e9a120ca9f6ee5202c162f13476f08 to your computer and use it in GitHub Desktop.
Save alibo/32e9a120ca9f6ee5202c162f13476f08 to your computer and use it in GitHub Desktop.
Adjust Laravel public directory for cPanel and DirectAdmin
<?php
namespace App;
use Illuminate\Foundation\Application;
class CustomApplication extends Application
{
/**
* Get the path to the public / web directory.
*
* @return string
*/
public function publicPath()
{
return $this->basePath.DIRECTORY_SEPARATOR.'public_html';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment