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?
Can I use react with laravel?
How to pass csrf token with ajax request?
How facades are different from dependency injection?
Tell us what are advantages of laravel?
Please explain the difference between laravel and codeigniter?
What is route model binding in laravel?
What is fillable in laravel model?
How to use traits in laravel?
What is the use of slug in laravel?
How to get Retrieving a Cookie in Laravel ?
Tell us what are bundles, reverse routing and the ioc container?
How do I assign several roles to users and permit the users to perform some actions based on those roles?
Explain how to add additional sites in homestead environment?
How can we configure a mail-in laravel?