Laravel ajax render view with data example

About Us:

We are from free coder. We are a group of web developers who are passionate about web development. You can learn from us php, laravel, node js, vue js, react js and many other topic on web developement.
we are very happy to help you.
free coder

Today what you are going to learn:

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 lesson i render view with pass data you can see how i did:

Example:

$data = $this->semester->getSemesterName($input);

$type = "Subject";

$options = view("home.ajax",compact('data','type'))->render();


return $options;

Recent Posts

Related Posts