Then How to return to view and postman same code?

|
amirvalhalla 2020-12-19 23:14:21
natghi2010 2020-12-19 23:12:37
oh, you have to setup your own channels etc?

for setup you have to use npm for socket io because it’s not supported php directly but it’s not problem and then you have to use broadcast::channel for making your page etc real time

natghi2010 2020-12-19 23:15:01
amirvalhalla 2020-12-19 23:14:21
for setup you have to use npm for socket io because it’s not supported php directly but it’s not problem and then you have to use broadcast::channel for making your page etc real time

npm is for client side

amirvalhalla 2020-12-19 23:15:03
pushier an easier way for learning real time in laravel but for commercial websites socket io is better choice
natghi2010 2020-12-19 23:15:12
what about server side?
natghi2010 2020-12-19 23:15:23
amirvalhalla 2020-12-19 23:15:03
pushier an easier way for learning real time in laravel but for commercial websites socket io is better choice

thanks will give it a shot

amirvalhalla 2020-12-19 23:16:00
all things that i told you were about server side
natghi2010 2020-12-19 23:16:47
amirvalhalla 2020-12-19 23:16:00
all things that i told you were about server side

it’s not supported php directly but it’s not problem

amirvalhalla 2020-12-19 23:17:34
natghi2010 2020-12-19 23:16:47
it’s not supported php directly but it’s not problem

yep for installation of it you gotta use npm

natghi2010 2020-12-19 23:18:07
amirvalhalla 2020-12-19 23:17:34
yep for installation of it you gotta use npm

but do i have to output javascript with php?

natghi2010 2020-12-19 23:18:18
when using it?
amirvalhalla 2020-12-19 23:19:36
natghi2010 2020-12-19 23:18:07
but do i have to output javascript with php?

i’m suggeting you to use it then you will discover the answers of your questions :)))

natghi2010 2020-12-19 23:19:46
amirvalhalla 2020-12-19 23:19:36
i’m suggeting you to use it then you will discover the answers of your questions :)))

okay okay thanks

amirvalhalla 2020-12-19 23:20:21
natghi2010 2020-12-19 23:19:46
okay okay thanks

you’re wlc

natghi2010 2020-12-19 23:35:23
amirvalhalla 2020-12-19 23:20:21
you’re wlc

one more question

2020-12-19 23:41:11
Okay
natghi2010 2020-12-19 23:42:39
2020-12-19 23:41:11
Okay

is it legal to marry a framework? I am in love with laravel and im ready to take the next step.We have been together 8 months now and it feels right.

Kibeish 2020-12-20 00:43:04
Huh?
JeevaniSM 2020-12-20 00:48:31
hi any one know here some javascript / Ajax ? how do we pick a particular form ID when we have multiple forms in a page ?
JeevaniSM 2020-12-20 00:49:11
natghi2010 2020-12-19 23:42:39
is it legal to marry a framework? I am in love with laravel and im ready to take the next step.We have been together 8 months now and it feels right.

yes best wishes but dont forget to authenticate your marriage !! πŸ™‚

emperor_of_darkness 2020-12-20 00:49:43
JeevaniSM 2020-12-20 00:48:31
hi any one know here some javascript / Ajax ? how do we pick a particular form ID when we have multiple forms in a page ?

document.getElementById(‘ID’)

JeevaniSM 2020-12-20 00:50:17
emperor_of_darkness 2020-12-20 00:49:43
document.getElementById(‘ID’)

but can it get value from the exact button I clicked ?

emperor_of_darkness 2020-12-20 00:50:49
JeevaniSM 2020-12-20 00:50:17
but can it get value from the exact button I clicked ?

Yeah if you set onClick listener

JeevaniSM 2020-12-20 00:51:01
emperor_of_darkness 2020-12-20 00:50:49
Yeah if you set onClick listener

thats where I am confused. May I DM you ?

emperor_of_darkness 2020-12-20 00:51:13
Sure
JeevaniSM 2020-12-20 00:51:29
emperor_of_darkness 2020-12-20 00:51:13
Sure

ty

natghi2010 2020-12-20 01:54:34
JeevaniSM 2020-12-20 00:49:11
yes best wishes but dont forget to authenticate your marriage !! πŸ™‚

thank you. yes jetstream will be there.

focalfossa20 2020-12-20 05:09:48
Bhuvi100 2020-12-19 11:41:34
send the blade code

https://pastebin.com/wF7bxCXV

all_pending.blade.php – Pastebin.comPastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
2020-12-20 05:27:12
JeevaniSM 2020-12-20 00:49:11
yes best wishes but dont forget to authenticate your marriage !! πŸ™‚

All task write as methodπŸ˜‚πŸ˜‚πŸ˜‚

ktmsulaim 2020-12-20 05:37:30
justine_chacko 2020-12-19 12:01:36
I am trying to store data in table with validator::make method. Data comes from postman and error returned as json. I also want a web form for this. My question is how to catch error in webform as the errors comming are in json

Create brand new exception. And register it in handler. Then throw in try catch block

justine_chacko 2020-12-20 05:45:48
ktmsulaim 2020-12-20 05:37:30
Create brand new exception. And register it in handler. Then throw in try catch block

Now I have code like below

$validator = Validator::make(request()->all(), [
‘service’ => ‘required|unique:web_services,service’
]);
if ($validator->fails()) {
Log::error($validator->errors());
return response()->json($validator->errors(), 422);
} else {
$webservices = new WebService();
$webservices->service = request(‘service’);
$webservices->save();
$this->sendMail();
return response()->json($webservices);
}
The validation arrives in view as json and it shows in browser in a blank page

Bhuvi100 2020-12-20 05:47:10
focalfossa20 2020-12-20 05:09:48
https://pastebin.com/wF7bxCXV

I don’t see any error.Try {{$fabric->I’d}} near the button and check what you are getting

focalfossa20 2020-12-20 05:48:04
Bhuvi100 2020-12-20 05:47:10
I don’t see any error.Try {{$fabric->I’d}} near the button and check what you are getting

Okay I’ll trying, thank for advice

Jomitz 2020-12-20 05:51:59
justine_chacko 2020-12-20 05:45:48
Now I have code like below

$validator = Validator::make(request()->all(), [
‘service’ => ‘required|unique:web_services,service’
]);
if ($validator->fails()) {
Log::error($validator->errors());
return response()->json($validator->errors(), 422);
} else {
$webservices = new WebService();
$webservices->service = request(‘service’);
$webservices->save();
$this->sendMail();
return response()->json($webservices);
}
The validation arrives in view as json and it shows in browser in a blank page

Because its retirning the errors as jason thats why if you are using ajax submit its the best way to handle error response but when you are using form submit directly from form you have to return back with errors for it

justine_chacko 2020-12-20 05:54:19
Jomitz 2020-12-20 05:51:59
Because its retirning the errors as jason thats why if you are using ajax submit its the best way to handle error response but when you are using form submit directly from form you have to return back with errors for it

then How to return to view and postman same code?

Jomitz 2020-12-20 05:56:27
justine_chacko 2020-12-20 05:54:19
then How to return to view and postman same code?

Its better to treat API code and web codes as different controllers and files

|