i just uploaded my website to a server and i'm currently trying to configure it, have had a lot of issues especially with changing the paths, right now my main issue is this:
PHP Parse error: syntax error, unexpected '[' in /hermes/bosoraweb097/b1299/dom.epchurchadentaorg/xxxxxxxxxxxxx.com/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 49
So i went to that file to check:
if ( ! function_exists('app'))
{
/**
* Get the available container instance.
*
* @param string $make
* @param array $parameters
* @return mixed|\Illuminate\Foundation\Application
*/
function app($make = null, $parameters = []) // Line 49 error
{
if (is_null($make)) return Container::getInstance();
return Container::getInstance()->make($make, $parameters);
}
}
Now personally i can't see anything wrong with it and it works just fine on my localhost, could there be another issue?
[]instead ofarray()). If that code is from Laravel then it does not support your version of PHP. If you wrote the code, then you need to usearray(). If you are unable to upgrade PHP then you are most likely out of luck.