How to render laravel blade data to controller


How can I pass data from laravel controller to blade and access this blade in controller as html code.


Use render method to access blade in laravel controller
In your controller
$action = view('your_blade_file_path',compact('data_variable'))->render();

In View:-
<div class="class name">
         <a href="url">$row->column_name</a>

Now you can get this view code into your controller which can be used throught your controller method