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
How secure is laravel?
Explain how to serve sites with tls on valet?
Define http middleware?
Explain binding instances?
Tell me what is laravel eloquent?
What is fluent query builder in laravel?
Explain me what is your favorite feature of laravel?
What is a controller middleware?
What is response macros?
What do you mean by route groups used in laravel 5?
How can I hide all stack whoops error information when the application is in production?
Is laravel safe from sql injection?
How to Accessing Session Data in Laravel ?
What is Laravel - Middleware ?
How to pass custom table name in model?