Unisharp\Laravelfilemanager\controllers\LfmController::__construct PHP Method

__construct() public method

Constructor
public __construct ( )
    public function __construct()
    {
        $this->file_type = Input::get('type', 'Images');
        // default set to Images.
        if ('Images' === $this->file_type) {
            $this->dir_location = Config::get('lfm.images_url');
            $this->file_location = Config::get('lfm.images_dir');
            $this->startup_view = Config::get('lfm.images_startup_view');
        } elseif ('Files' === $this->file_type) {
            $this->dir_location = Config::get('lfm.files_url');
            $this->file_location = Config::get('lfm.files_dir');
            $this->startup_view = Config::get('lfm.files_startup_view');
        } else {
            throw new \Exception('unexpected type parameter');
        }
        $this->checkDefaultFolderExists('user');
        $this->checkDefaultFolderExists('share');
        $this->user = \Auth::user();
    }