β prev | next β
natghi2010 2021-08-24 18:57:08
Or throwable?
natghi2010 2021-08-24 18:57:28
Which is it for timeout
u_f_0_1 2021-08-24 18:57:53
Relaxed Guy 2021-08-24 18:56:08
Bro… Google
π
π
π
… I already did that but like I said I’m new to it so I don’t understand one thing
I saw your suggestion on most of the stack overflow pages but not how to implement them
Relaxed Guy 2021-08-24 18:58:17
natghi2010 2021-08-24 18:57:28
Which is it for timeout
He says he wants a custom
Relaxed Guy 2021-08-24 18:58:37
That means in the catch that’s whre he directs to his 404 page
natghi2010 2021-08-24 18:58:55
I understand that
natghi2010 2021-08-24 18:59:11
Relaxed Guy 2021-08-24 18:58:37
That means in the catch that’s whre he directs to his 404 page
But to getMessage()
natghi2010 2021-08-24 18:59:25
Which is it?
Relaxed Guy 2021-08-24 19:00:24
Catch(Throwable $r){return $r->getMessage();}
natghi2010 2021-08-24 19:00:39
I think for api its throwable but for web exception
Relaxed Guy 2021-08-24 19:01:41
Exceptions are mainly used for sql like errors that’s wat I think .. I can still use throwable if I want to
Relaxed Guy 2021-08-24 19:02:20
For web then wen it comes to sql errors
Relaxed Guy 2021-08-24 19:02:32
That’s wen I use exceptions
u_f_0_1 2021-08-24 19:04:08
Relaxed Guy 2021-08-24 19:00:24
Catch(Throwable $r){return $r->getMessage();}

can you give me links or something to read up? on how to apply your suggestion to this
the part that says $response
Relaxed Guy 2021-08-24 19:07:07
Man … this is some code I can’t understand
Relaxed Guy 2021-08-24 19:07:39
Try using guzzle
Relaxed Guy 2021-08-24 19:08:06
Read about guzzle…laravel
u_f_0_1 2021-08-24 19:11:41
Relaxed Guy 2021-08-24 19:07:07
Man … this is some code I can’t understand
In the funct. ShowregistrationFrom()
$response is calling an API as you can see the link
(skip the rest that has to do with code, name, flag)
Then returns all that info to the auth.register page so It can be used
If $response doesn’t get any request, say my internet is slow or turned off.. I get the error I showered you earlier
So my question is, I don’t want to see that error, I don’t want the users to see all that gibberish Laravel error cos they don’t know what it means
I want to display a simpler error like a 404 page or something to tell users to check their internet connection or reload the page
u_f_0_1 2021-08-24 19:11:53
Relaxed Guy 2021-08-24 19:08:06
Read about guzzle…laravel
Okay
u_f_0_1 2021-08-24 19:12:08
u_f_0_1 2021-08-24 19:11:41
In the funct. ShowregistrationFrom()
$response is calling an API as you can see the link
(skip the rest that has to do with code, name, flag)
Then returns all that info to the auth.register page so It can be used
If $response doesn’t get any request, say my internet is slow or turned off.. I get the error I showered you earlier
So my question is, I don’t want to see that error, I don’t want the users to see all that gibberish Laravel error cos they don’t know what it means
I want to display a simpler error like a 404 page or something to tell users to check their internet connection or reload the page
I don’t know if I’m making any senseπ€¦π»ββοΈ or talking gibberish
Relaxed Guy 2021-08-24 19:12:39
Yes ur
Relaxed Guy 2021-08-24 19:14:08
Put the success bit.. in the try then in the catch write a return redirect()->route(‘404routename’);
u_f_0_1 2021-08-24 19:16:38
Relaxed Guy 2021-08-24 19:14:08
Put the success bit.. in the try then in the catch write a return redirect()->route(‘404routename’);
Okay thanks
Relaxed Guy 2021-08-24 19:17:24
Ur welcome
u_f_0_1 2021-08-24 19:32:02
Relaxed Guy 2021-08-24 19:17:24
Ur welcome
it worked, thanks again
Relaxed Guy 2021-08-24 19:32:37
Ur welcome
Dilawar Naseem 2021-08-24 20:59:15
Please suggest any good open source tool for reporting
KS 2021-08-24 21:30:47
https://stackoverflow.com/questions/68912385/sync-data-between-multiple-domain-or-ports
Can someone give idea for this
Sync data between multiple domain or ports –
Stack OverflowCreating a Chat Widget, we’re the chat widget can be hosted on any domain and the agent portal will be on the main portal.. When a chat is send from a domain it should reflect instantly on the agent
Kamod Kumar 2021-08-24 22:08:56

Page controller not reflect api.php route
Azhar Mansoori 2021-08-24 23:10:07
Can anyone tell me about crud function
ntonsite 2021-08-24 23:19:57
Kamod Kumar 2021-08-24 22:08:56
Page controller not reflect api.php route
Hello, Try to clear the cache.
Run “php artisan optimize:clear”
Roham0010 2021-08-24 23:46:57
Azhar Mansoori 2021-08-24 23:10:07
Can anyone tell me about crud function
It’s not a function it’s synonym for
Create update delete
Kishanpatel59 2021-08-25 03:17:12
Kamod Kumar 2021-08-24 22:08:56
Page controller not reflect api.php route
Which version of laravel you use?
Hazar_Orabi 2021-08-25 06:15:39
Hazar_Orabi 2021-08-25 06:17:33
Note
Function List() is empty
β prev | next β