← prev | next →
SkipperStrange 2019-04-24 23:01:07
Good it worked
SkipperStrange 2019-04-24 23:01:25
I’m having a 500 error but it’s working
StanleyMasinde 2019-04-24 23:02:01
SkipperStrange 2019-04-24 23:01:25
I’m having a 500 error but it’s working
You can use your browser’s debug console or postman to investigate
SkipperStrange 2019-04-24 23:02:30
I think it’s the controller
StanleyMasinde 2019-04-24 23:02:50
Yeah it’s serverside
SkipperStrange 2019-04-24 23:04:36
Yep
SkipperStrange 2019-04-24 23:05:28
So all i did was use if($request->ajax()){}
StanleyMasinde 2019-04-24 23:06:18
SkipperStrange 2019-04-24 23:05:28
So all i did was use if($request->ajax()){}
There is no such method in the Request class
StanleyMasinde 2019-04-24 23:06:38
Use the normal method you use with traditional forms
SkipperStrange 2019-04-24 23:07:09
Using Request::ajax() gave me the 500 error
StanleyMasinde 2019-04-24 23:07:38
SkipperStrange 2019-04-24 23:07:09
Using Request::ajax() gave me the 500 error
😂😂 please read my above messages
SkipperStrange 2019-04-24 23:08:07
SkipperStrange 2019-04-24 23:08:08
SkipperStrange 2019-04-24 23:08:13
SkipperStrange 2019-04-24 23:07:09
Using Request::ajax() gave me the 500 error
Yh
StanleyMasinde 2019-04-24 23:09:00
SkipperStrange 2019-04-24 23:08:07
I repeat there is no method called Ajax ()
SkipperStrange 2019-04-24 23:09:07
But this works
SkipperStrange 2019-04-24 23:09:10
StanleyMasinde 2019-04-24 23:09:16
StanleyMasinde 2019-04-24 23:06:38
Use the normal method you use with traditional forms
Read this😒
StanleyMasinde 2019-04-24 23:11:09
SkipperStrange 2019-04-24 23:09:10
A lot of errors
StanleyMasinde 2019-04-24 23:11:53
You either did not go through laravel’s docs or that is not your code
SkipperStrange 2019-04-24 23:12:27
Some stack overflow post
SkipperStrange 2019-04-24 23:12:47
SkipperStrange 2019-04-24 23:12:51
This is what gave the errors
SkipperStrange 2019-04-24 23:13:25
SkipperStrange 2019-04-24 23:09:10
But when i use this i get a 200 response
SkipperStrange 2019-04-24 23:13:49
SkipperStrange 2019-04-24 23:13:25
But when i use this i get a 200 response
Why is it wrong
SkipperStrange 2019-04-24 23:14:09
Please help guys
SkipperStrange 2019-04-24 23:14:18
This is my first laravel app
StanleyMasinde 2019-04-24 23:14:55
First thing you are doing wrong…
You are not reading the exception message
Please read the exeption message first it is very clear on Whats wrong
SkipperStrange 2019-04-24 23:16:32
StanleyMasinde 2019-04-24 23:14:55
First thing you are doing wrong…
You are not reading the exception message
Please read the exeption message first it is very clear on Whats wrong
Ok… where do i get this from
SkipperStrange 2019-04-24 23:17:23
StanleyMasinde 2019-04-24 23:17:35
SkipperStrange 2019-04-24 23:16:32
Ok… where do i get this from
I already said this but let me reapeat. Use your browsers debug console. Click on network you should see requests
StanleyMasinde 2019-04-24 23:18:10
SkipperStrange 2019-04-24 23:17:23
I’ve never seen that thanks
SkipperStrange 2019-04-24 23:18:23
Tried using this and that’s what gave me the errors
StanleyMasinde 2019-04-24 23:18:37
StanleyMasinde 2019-04-24 23:17:35
I already said this but let me reapeat. Use your browsers debug console. Click on network you should see requests
Read this
SkipperStrange 2019-04-24 23:19:03
SkipperStrange 2019-04-24 23:19:03
On line 2
SkipperStrange 2019-04-24 23:19:18
StanleyMasinde 2019-04-24 23:18:37
Read this
Yh
StanleyMasinde 2019-04-24 23:19:59
Ajax() cannot be called statically
StanleyMasinde 2019-04-24 23:22:02
if ($request->ajax())
{
}
Because Request has already been instatiated to $request
SkipperStrange 2019-04-24 23:22:56
This is how i got it to work:
public function save(Request $request){
if ($request->ajax()){
}
}
StanleyMasinde 2019-04-24 23:23:31
SkipperStrange 2019-04-24 23:22:56
This is how i got it to work:
public function save(Request $request){
if ($request->ajax()){
}
}
As I’ve said above with a reason
SkipperStrange 2019-04-24 23:24:05
Thanks stan
StanleyMasinde 2019-04-24 23:24:27
SkipperStrange 2019-04-24 23:24:05
Thanks stan
I’m sorry if I’ve been harsh
SkipperStrange 2019-04-24 23:24:27
Been battling with thos for almost 2weeks
StanleyMasinde 2019-04-24 23:24:42
SkipperStrange 2019-04-24 23:24:27
Been battling with thos for almost 2weeks
😂 haha free at last
SkipperStrange 2019-04-24 23:24:49
Yh
SkipperStrange 2019-04-24 23:25:07
Its no joke
SkipperStrange 2019-04-24 23:25:15
I even got fed up
senhorY 2019-04-24 23:25:28
Some OOP knowledge is very useful when it comes to laravel and modern php
StanleyMasinde 2019-04-24 23:25:39
senhorY 2019-04-24 23:25:28
Some OOP knowledge is very useful when it comes to laravel and modern php
Yes
← prev | next →