Laravel ajax render view with data exampleBy Hardik Savani | May 6, 2016 | | 2466 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 can i get the path from laravel application root?
- How to integrate stripe payment gateway in Laravel 5.4 Application ?
- How to get year, month and day from timestamp date using carbon in Laravel 5?
- How to remove comma from string in jquery with example ?
- PHP - How to make dependent dropdown list using jquery Ajax?
- How to get last executed query in Larave 5?
- How can i print php variable in jquery?
- Codeigniter - How to get current url in controller or view ?