public function helper($name, $directory = 'Helpers')
    {
        $file = app_path($directory . DIRECTORY_SEPARATOR . $name . '.php');
        if (file_exists($file)) {
            return require $file;
        }

        throw new ExceptionHandler('Oppss! File not found.', 'Helper::' . $name . ' not found.');
    }
public function helper($name, $directory = 'Helpers')
    {
        $file = app_path($directory . DIRECTORY_SEPARATOR . $name . '.php');
        if (file_exists($file)) {
            return require $file;
        }

        throw new ExceptionHandler('Oppss! File not found.', 'Helper::' . $name . ' not found.');
    }
public function helper ( $ name , $ directory = 'Helpers' ) { $ file = app_path ( $ directory . DIRECTORY_SEPARATOR . $ name . '.php' ) ; if ( file_exists ( $ file ) ) { return require $ file ; } throw new ExceptionHandler ( 'Oppss! File not found.' , 'Helper::' . $ name . ' not found.' ) ; }
Load helper file.

@param string $name
@param string $directory
@return mixed

@throws
Load helper file .