Devise\Media\MediaPaths::__construct PHP Method

__construct() public method

Create a new Media Path Helper the purpose of this class is to determine paths for media (and versions of media)
public __construct ( string $basepath = null, string $baseurl = null, null $Config = null )
$basepath string
$baseurl string
$Config null
    public function __construct($basepath = null, $baseurl = null, $Config = null)
    {
        $this->basepath = $basepath ?: public_path();
        $this->baseurl = $baseurl ?: \URL::asset('/');
        $this->Config = $Config ?: \Config::getFacadeRoot();
    }