Do you have the controller?

|
efe_da_first 2022-05-09 19:18:53
laravel_discuss-120075.jpg
This works fine,
efe_da_first 2022-05-09 19:19:42
laravel_discuss-120076.jpg
But this, ish ish
LegendaryTimmy69 2022-05-09 19:19:48
efe_da_first 2022-05-09 19:18:53
This works fine,

Hmmm…. 🤔

LegendaryTimmy69 2022-05-09 19:20:31
efe_da_first 2022-05-09 19:19:42
But this, ish ish

Did you try changing the position of this?

LegendaryTimmy69 2022-05-09 19:20:53
efe_da_first 2022-05-09 19:18:53
This works fine,

This closure mostly works in any case.

LegendaryTimmy69 2022-05-09 19:21:46
I haven’t encountered this problem in this manner so I may need to do some digging of my own to understand it.
efe_da_first 2022-05-09 19:22:04
LegendaryTimmy69 2022-05-09 19:20:31
Did you try changing the position of this?

Yes I did

LegendaryTimmy69 2022-05-09 19:22:12
efe_da_first 2022-05-09 19:22:04
Yes I did

Okay

praneet81 2022-05-09 19:29:10
do you have the controller?
praneet81 2022-05-09 19:29:26
and do you have dashboard method in your controller?
efe_da_first 2022-05-09 19:30:30
Yeah I noticed the controller is the issue here.
efe_da_first 2022-05-09 19:30:53
I called on another controller which is not protected, it worked fine
praneet81 2022-05-09 19:30:57
create the controller add the method and you will be fine
efe_da_first 2022-05-09 19:31:19
But the dashboard controller is protected and I think that’s why
LegendaryTimmy69 2022-05-09 19:32:36
efe_da_first 2022-05-09 19:31:19
But the dashboard controller is protected and I think that’s why

Shouldn’t be.

LegendaryTimmy69 2022-05-09 19:32:46
praneet81 2022-05-09 19:30:57
create the controller add the method and you will be fine

The controller seems to have been created as there as no errors showing.

bsamaasi 2022-05-09 19:33:09
efe_da_first 2022-05-09 19:31:19
But the dashboard controller is protected and I think that’s why

Protect how

LegendaryTimmy69 2022-05-09 19:33:19
efe_da_first 2022-05-09 19:30:53
I called on another controller which is not protected, it worked fine

When you say protected, I’m not seeing any middleware there.

efe_da_first 2022-05-09 19:34:10
laravel_discuss-120093.jpg
This works cause it’s going to an unprotected controller whos is:
efe_da_first 2022-05-09 19:34:37
LegendaryTimmy69 2022-05-09 19:33:19
When you say protected, I’m not seeing any middleware there.

Protected in the controller using __contruct

ForgeDark 2022-05-09 19:35:03
Anyone has Optusnet Webmail here ?
efe_da_first 2022-05-09 19:35:52
efe_da_first 2022-05-09 19:34:10
This works cause it’s going to an unprotected controller whos is:

laravel_discuss-120096.jpg
This is the HomeController and this works fine

efe_da_first 2022-05-09 19:36:29
efe_da_first 2022-05-09 19:19:42
But this, ish ish

But for this:

praneet81 2022-05-09 19:36:32
Show us your dashboard controller
efe_da_first 2022-05-09 19:37:38
efe_da_first 2022-05-09 19:19:42
But this, ish ish

laravel_discuss-120099.jpg
But this is not working

praneet81 2022-05-09 19:38:46
What is the error you are getting
praneet81 2022-05-09 19:39:32
Looks like you need to be authenticated to visit the route
LegendaryTimmy69 2022-05-09 19:40:24
praneet81 2022-05-09 19:39:32
Looks like you need to be authenticated to visit the route

Missed that!

LegendaryTimmy69 2022-05-09 19:40:49
@efe_da_firstborn is the user authenticated?
devpsoft 2022-05-09 19:43:26
Example laravel with paypal server-side
devpsoft 2022-05-09 19:43:37
https://github.com/rabie85/laravel-paypal-server-side

GitHub – rabie85/laravel-paypal-server-side: using paypal in laravel 8 -server side-GitHub
using paypal in laravel 8 -server side-. Contribute to rabie85/laravel-paypal-server-side development by creating an account on GitHub.
efe_da_first 2022-05-09 19:44:50
praneet81 2022-05-09 19:38:46
What is the error you are getting

laravel_discuss-120114.jpg
This is the error

efe_da_first 2022-05-09 19:45:15
praneet81 2022-05-09 19:39:32
Looks like you need to be authenticated to visit the route

It was authenticated

praneet81 2022-05-09 19:45:36
try authenticating again
praneet81 2022-05-09 19:45:50
and then try to access the route
|