Anyone work with laravel-swoole?

|
nasservb 2019-07-01 09:17:55
anyone work with laravel-swoole ?
2019-07-01 10:09:11
“Call to a member function hashName() on null” when i upload image in laravel5.8
GauravGohil 2019-07-01 11:18:19
Hie
GauravGohil 2019-07-01 11:18:41
I am on this route
GauravGohil 2019-07-01 11:18:55
laravel_discuss-8069.jpg

GauravGohil 2019-07-01 11:19:14
I want to send Ajax post request to login
GauravGohil 2019-07-01 11:19:33
When I sent request it shows post not allowed for this methid
GauravGohil 2019-07-01 11:22:28
laravel_discuss-8072.jpg

GauravGohil 2019-07-01 11:28:03
I have send it
GauravGohil 2019-07-01 11:28:39
laravel_discuss-8075.jpg

GauravGohil 2019-07-01 11:30:51
No
GauravGohil 2019-07-01 11:31:02
Laravel auth
GauravGohil 2019-07-01 11:31:33
Has it default
gabitsm 2019-07-01 11:32:10
GauravGohil 2019-07-01 11:28:39

why you are not using telegram desktop or web version for screenshots?

gabitsm 2019-07-01 11:33:05
GauravGohil 2019-07-01 11:28:39

because when you opening link its get request

gabitsm 2019-07-01 11:33:46
GauravGohil 2019-07-01 11:22:28

can you show console network?

GauravGohil 2019-07-01 11:34:20
I have made a login modal
GauravGohil 2019-07-01 11:36:12
laravel_discuss-8086.jpg

GauravGohil 2019-07-01 11:36:35
i want to send ajax post request for login of the user
GauravGohil 2019-07-01 11:37:31
laravel_discuss-8088.jpg

GauravGohil 2019-07-01 11:37:42
this is the error i am getting
gabitsm 2019-07-01 11:38:05
gabitsm 2019-07-01 11:33:46
can you show console network?

Request and response

gabitsm 2019-07-01 11:38:46
GauravGohil 2019-07-01 11:37:31

Whrn you open link its becomes get method

gabitsm 2019-07-01 11:39:04
So it’s not right error
GauravGohil 2019-07-01 11:41:16
so what should i do
GauravGohil 2019-07-01 11:42:19
i want a modal to send login request via jax
GauravGohil 2019-07-01 11:42:24
http://127.0.0.1:8000/builder/VolejRejNm i am this route
GauravGohil 2019-07-01 11:42:32
ajax
gabitsm 2019-07-01 11:43:00
Click f12
gabitsm 2019-07-01 11:43:05
Open tab network
gabitsm 2019-07-01 11:43:20
Filter by xrhs
GauravGohil 2019-07-01 11:43:29
it is also showing the same error
gabitsm 2019-07-01 11:44:19
Can you screen network tab?
GauravGohil 2019-07-01 11:44:44
yes i can
GauravGohil 2019-07-01 11:45:14
what is happenig is that
GauravGohil 2019-07-01 11:45:22
it is sending post request to /builder/VolejRejNm
GauravGohil 2019-07-01 11:45:25
this route
GauravGohil 2019-07-01 11:45:41
that is why i m getting error
GauravGohil 2019-07-01 11:45:53
but y it is send post request to /builder/VolejRejNm route
GauravGohil 2019-07-01 11:46:05
while i have speccified url as login
GauravGohil 2019-07-01 12:01:23
laravel_discuss-8109.jpg

GauravGohil 2019-07-01 12:01:33
this is what network looks like
loveycom 2019-07-01 13:06:45
Please adjust your url in your ajax.
loveycom 2019-07-01 13:07:16
route(‘login’)
loveycom 2019-07-01 13:10:57
A visit to url/login (GET) returns the login page. This is what you are calling
gabitsm 2019-07-01 13:11:35
GauravGohil 2019-07-01 12:01:23

write in console php artisan route:list

gabitsm 2019-07-01 13:11:44
then find login url
loveycom 2019-07-01 13:12:45
From here you will know the post route for login
Marvixino 2019-07-01 13:46:11
How to add the user role to the JWT token? I add in this way, is it the right way?
Marvixino 2019-07-01 13:46:11
laravel_discuss-8119.jpg

|