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 to install laravel by composer?
What is blade template?
How to create model controller and migration in a single artisan command in laravel?
what is Restful Resource Controllers ?
Is laravel secure?
What are enhancement features in laravel 5.8?
What is Named Routes.
What are laravel contract’s?
What do you understand by lumen?
What is query scope?
How to register a middleware in laravel?
Explain Events and Listeners ?
what is Basic Routing ?
What is http middleware?
What are service providers?