Website is working fine on homestead, my cheap client wants to use GoDaddy Shared hosting plan. So I uploaded the wesbite there and done the necessary steps to make it work on shared hosting (I've done it a few times before).
Now the problem is blade isn't working, I keep getting this error when I visit any page:
FatalErrorException in f9c03dabd451edf48bd7b313226d0962 line 54:
syntax error, unexpected '->' (T_OBJECT_OPERATOR), expecting ']'
I made sure /storage/framework/views has 777 permission, still didn't work.
I removed everything from the index page, and wrote some text without using blade and it is working fine.
Side note: What version of PHP is the server running? My first instinct is that Laravel requires PHP > 5.5.9 and shared hosting on GoDaddy will be less than that (I haven't checked). See https://laravel.com/docs/5.2/#server-requirements for more details.
Anyway, can you show some code of the file thats producing the error?
@mstnorris Yes the default is 5.5, but that can be changed to 5.6 which should work fine, also, all the views are not working, I posted one right above this comment. Thank you.
@mstnorris@d3xt3r Thank you both for helping, once I fixed the error @d3xt3r said it started working, but how come it was working fine on homestead and only got the error on the server? Any ideas would be great.
but how come it was working fine on homestead and only got the error on the serve
It guess, it has to do with PHP version, checked on both on DO and homestead, running on PHP 7 +, no error, checked on localhost running PHP 5.6, same error as you :)
@d3xt3r I kind of thought that this could be the problem when I woke up this morning, unfortunately I was very busy to test it, so thank you very much for helping and trying as well.