• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"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
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.