Laravel ajax render view with data exampleBy Hardik Savani | May 6, 2016 | | 1409 Viewer | Category : Laravel
Share this post:
Sometimes, we use get html view layout from ajax request. At that you have to first render view file and then you need to store view in varibale and then we can return that varibale. In bellow example i render view with pass data you can see how i did:
$data = $this->semester->getSemesterName($input);
$type = "Subject";
$options = view("home.ajax",compact('data','type'))->render();
- How to check request method is GET or POST in Laravel?
- How to get Ip Address in Laravel 5?
- HTML tags are not allowed in textbox validation using Jquery
- PHP download file from url using curl example
- CRUD (Create Read Update Delete) Example in Laravel 5.2 from Scratch
- How to upgrade node.js version in Ubuntu?
- Pixel tracking code php example
- Example of Cron Job in Laravel 5