Answer Posted / sunil kumar
Ajax (Asynchronous JavaScript and XML) is a set of web development techniques utilizing many web technologies used on the client-side to create asynchronous Web applications.
Import jquery library in your view file to use ajax functions of jquery which will be used to send and receive data using ajax from the server.
On the server side you can use the response() function to send response to client and to send response in JSON format you can chain the response function with json() function.
json() function syntax : json(string|array $data = array(), int $status = 200, array $headers = array(), int $options)
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is an observer in laravel?
What is x-csrf-token?
How to configure route cache and clear route cache in laravel?
What is the difference between facades vs helper functions?
How to get/set configuration values in laravel?
Explain what is mvc architecture?
What is meant by CRUD and explain each of it Operations ?
Where laravel’s facades are defined?
Explain the controllers in laravel?
How do I know laravel version?
What is eager loading in laravel?
Explain binding primitives?
What is meant by Attaching Cookies ?
How can you enable query log in laravel?
What is a soft delete?