I don't think you can simply return a string the way you are doing. Try echo instead of return and see if it works. Alternatively, you can create a view that simply outputs "Hello" and return that.
(07-26-2020, 06:59 PM)mlurie Wrote: I don't think you can simply return a string the way you are doing. Try echo instead of return and see if it works. Alternatively, you can create a view that simply outputs "Hello" and return that.
I tried but same result. Project works normally in laragon
07-28-2020, 06:52 PM (This post was last modified: 07-28-2020, 06:56 PM by mlurie.)
What do your routes look like?
Also, it looks like VS Code is flagging your hello() function name for some reason. There might be a naming conflict somewhere. Try changing the name of your method to something else.