Laravel ajax render view with data exampleBy Hardik Savani | May 6, 2016 | | 6704 Viewer | Category : Laravel
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();
- PHP - autocomplete websites with domain and logo using clearbit API
- PHP - jquery ajax crop image before upload using croppie plugin
- Laravel 5 - Ajax crop image before upload using using croppie plugin
- Laravel 5 - "syntax error or access violation 1055 in group by" Solved
- How to redirect to external link with laravel 5?
- Laravel 5 - How to implement gravatar image using thomaswelton/laravel-gravatar package
- How to add jquery modal popup in PHP?
- Laravel 5 - How to create custom error page with example