Laravel ajax render view with data exampleBy Hardik Savani | May 6, 2016 | | 1621 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 remove special characters by mysql custom function.
- PHP - Behance API tutorial with example and demo
- CRUD (Create Read Update Delete) Example in Laravel 5.2 from Scratch
- How to integrate google map using gmaps.js in php example?
- PHP - Input multiple tags with dynamic autocomplete example
- How to check current password using hash check in Laravel 5.3?
- How to copy one table data into another table using Mysql Query?
- PHP - How to convert HTML file to PDF using Dompdf library?