Welcome Guest, Not a member yet? Register   Sign In
"Access Denied" error
#1

Hello everyone.

I create a new project with composer on Vagrant/Homestead. If I add a new method in Home Controller I get an error called "Access Denied". 

Where am I making a mistake?

Thanks.

Attached Files Thumbnail(s)
               
Reply
#2

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.
Reply
#3

(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 Undecided
Reply
#4

(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.
Reply
#5

I solved the problem. Problem fixed after reinstalling Homestead.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB